On Thu, May 16, 2019 at 02:40:07PM +0200, Hans Hagen wrote:
> On 5/16/2019 12:21 PM, Rudolf Bahr wrote:
> > The problem with artefacts in .png images is still unsolved for me.
> > I can circumvent it by using .jpg or .tiff images instead of .png images
> > as long as no transparent areas in the images are needed. As far as I know
> > .jpg and .tiff formats cannot handle transparancy, do they?
> >
> > Now in .log files messages like
> > "luatex warning > pdfe: invalid 11 0 R object at offset 223611"
> > can be seen. Please, what do they mean?
> Does that come from an pdf generated by image magick>? If so, the problem is
> there ... the last years I've seen lots of converted files with bogus pdf
> objects. (Kind of harmless but still.)
>
> Hans
No. I never use neither ImageMagick nor GraphicsMagick to generate images in
.pdf-format. Even with my scanner software I produce always .jpg-images though
it
is capable to produce .pdf-output too. The only .pdf-files I'm doing are made by
ConTeXt-LMTX!
I shall append another, interesting MWE. There is a .png-image which is, as it
occasionally happens, represented as it should, by ConTeXt. And then the same
.png-image
to which I added a red frame by GIMP2.10. This one shows artefacts in ConTeXt!
I'm adding the .log-file too. There again is a luatex-warning, as I could
observe them
often in ConTeXt-LMTX:
-
luatex warning > pdfe: invalid 11 0 R object at offset 41603
-
Please, what does mean it? I fear there is something wrong with the
.png-handling
of ConTeXt/luatex.
The outputs of
feh imagered-frame.png
gm display imagered-frame.png
are looking ok. And GIMP2.10 has produced all image-files.
Rudolf
PS.:
echo $PATH
/home/sam/Android/platform-tools:/bin:/usr/bin:/home/sam/context-lmtx/tex/texmf-linux-64/bin:/home/sam/context-lmtx/bin:/home/sam/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
The .tiff-image is always too big for this forums upper limit
\starttext
\midaligned{
\externalfigure[image-no-red-frame.png][width=15mm,height=25mm] \hskip12pt
\externalfigure[imagered-frame.png][width=15mm,height=25mm] \hskip12pt
\externalfigure[imagered-frame.jpg][width=15mm,height=25mm] \hskip12pt
\externalfigure[imagered-frame.tiff][width=15mm,height=25mm]
}
\stoptext
open source > level 1, order 1, name 'cont-yes.mkiv'
system >
system > ConTeXt ver: 2019.05.12 19:40 MKIV beta fmt: 2019.5.14
int: english/english
system >
system > 'cont-new.mkiv' loaded
open source > level 2, order 2, name
'/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system > beware: some patches loaded from cont-new.mkiv
close source> level 2, order 2, name
'/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system > files > jobname 'Artefakte', input './Artefakte', result
'Artefakte'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > level 2, order 3, name './Artefakte.tex'
fonts > preloading latin modern fonts (second stage)
fonts > 'fallback modern-designsize rm 12pt' is loaded
luatex warning > pdfe: invalid 11 0 R object at offset 41603
backend > xmp > using file
'/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1, subpage 1
close source> level 2, order 3, name './Artefakte.tex'
close source> level 1, order 3, name 'cont-yes.mkiv'
system > start used files
system > text: Artefakte
system > stop used files
system > start used files
system >1: filename=char-prv.lua filetype=tex format=tex
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/char-prv.lua
usedmethod=database
system >2: filename=cont-yes.mkiv filetype=tex format=tex
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv
usedmethod=database
system >3: filename=publ-imp-default.lua filetype=scripts
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua
usedmethod=database
system >4: filename=cont-new.mkiv filetype=tex
foundname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
fullname=/home/sam/context-lmtx/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv
usedmethod=database
system >5: filename=lang-exc.lua filetype=scripts
f