Hello,
Thanks to Aditya I have discovered ConTeXt which, thus far, seems to
give me much more control over the images than LaTex does. Yay! Before
we get the reason for this post, I should note that my workflow is
MultiMarkdown file, pandoc output of standalone context file, then
context on that pandoc output. I have edited the context file to include
a /defineexternalfigure directive to put a frame around all images. The
images I have are all screenshots of application usage steps. The
crucial output is html that goes into our online Knowledge base.
Secondary output is PDF that will be used for our classroom training.
The screen shots are mostly jpg with a scattering of png, and are all
different sizes. The pandoc html output looks very much as we want it as
we can use a css file to customize padding, etc.
I get a very good pdf document, but there is one bewildering issue --
the images in the ConTeXt output pdf document are scaled very small. All
of them, that is, but two which are more correctly sized in the pdf
document. Almost all of them are jpg images created on a MacOS VM using
an application called Skitch. I have looked the images over and besides
some differing exif data all of them have the expected xy dimension
attributes and I can see no difference between the two that are 'right'
in the pdf document and the rest that are too small. I've tried playing
with scale=1000 and factor=
2012/11/21 Guy Stalnaker
I get a very good pdf document, but there is one bewildering issue -- the images in the ConTeXt output pdf document are scaled very small. All of
Sounds like the TeX engine gets the wrong idea about the dpi of the images. Are you using MkII or MkIV? Best Martin
I get the same results using texexec and context which means, if I understand rightly, I have used both MkII and MkIV. Interestingly I get similar results using oft as the pandit output. When I open the doc in LibreOffice the images are all scaled too small. Yet I can right-click each and select an Original Size toggle and they shift to their expected size. But note that I attempted to test the dpi theory by selecting an image and using GIMP to set its dpi to 300 yet that resulted in no visible change.
Guy Stalnaker
jstalnak@wisc.edu
jimmyg521@gmail.com
On Nov 21, 2012, at 4:07 AM, Martin Schröder
2012/11/21 Guy Stalnaker
: I get a very good pdf document, but there is one bewildering issue -- the images in the ConTeXt output pdf document are scaled very small. All of
Sounds like the TeX engine gets the wrong idea about the dpi of the images. Are you using MkII or MkIV?
Best Martin ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Guy Stalnaker
I get the same results using texexec and context which means, if I understand rightly, I have used both MkII and MkIV.
Yes, this is correct.
Interestingly I get similar results using oft as the pandit output.
That does suggest it might be something in the image metadata, too. Is the image file something you can share? If so, perhaps you could share it on the list as an attachment (this mailing list allows attachments), so we could have a go at getting it to work ourselves. Cheers, Sietse
Thanks - see my first post for a link to a web folder where you can find the .tex file, the .pdf context produces, two screenshots of the differing image treatment and two of the image files shown in the screenshots.
Guy Stalnaker
jstalnak@wisc.edu
jimmyg521@gmail.com
On Nov 21, 2012, at 8:35 AM, Sietse Brouwer
Guy Stalnaker
wrote: I get the same results using texexec and context which means, if I understand rightly, I have used both MkII and MkIV.
Yes, this is correct.
Interestingly I get similar results using oft as the pandit output.
That does suggest it might be something in the image metadata, too. Is the image file something you can share? If so, perhaps you could share it on the list as an attachment (this mailing list allows attachments), so we could have a go at getting it to work ourselves.
Cheers, Sietse ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
I suggest that you use 'identify' from ImageMagick to check your graphics. identify -verbose foo.jpg One graphic has a defined resolution (72ppi) and one has none. I also use ImageMagick to automatically add the resolution info to the graphics. No problems with graphic sizes since then. Here is the simplyfied content of a batch file that I normally use... for %%i in (*.png) do convert -units PixelsPerInch -set density 96 "%%i" The important thing is, that you use PNG as graphic format, when you make your screenshots. JPG isn't lossless and any re-compression (e.g. by adding an arrow, clipping) makes things even worse. Convert them to JPG in the very last step (if you must). Also: how about scaling your browser to 200% before you take your screenshots? HTH, Peter Am 21.11.2012 15:55, schrieb Guy Stalnaker:
Thanks - see my first post for a link to a web folder where you can find the .tex file, the .pdf context produces, two screenshots of the differing image treatment and two of the image files shown in the screenshots.
Guy Stalnaker jstalnak@wisc.edu jimmyg521@gmail.com
On Nov 21, 2012, at 8:35 AM, Sietse Brouwer
wrote: Guy Stalnaker
wrote: I get the same results using texexec and context which means, if I understand rightly, I have used both MkII and MkIV.
Yes, this is correct.
Interestingly I get similar results using oft as the pandit output.
That does suggest it might be something in the image metadata, too. Is the image file something you can share? If so, perhaps you could share it on the list as an attachment (this mailing list allows attachments), so we could have a go at getting it to work ourselves.
Cheers, Sietse ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (4)
-
Guy Stalnaker
-
Martin Schröder
-
Peter Rolf
-
Sietse Brouwer