How to override the print resolution
When using \externalfigure it uses the print resolution for putting the graphic into the document. Until now all my graphics had a resolution of 300x300, but I just got one with a much lower one, which blew up in my document. I just set the print resolution to 300x300 and everything is fine again, but is there a way to override the printer resolution? -- Cecil Westerhof
Am 2011-07-02 um 12:49 schrieb Cecil Westerhof:
When using \externalfigure it uses the print resolution for putting the graphic into the document. Until now all my graphics had a resolution of 300x300, but I just got one with a much lower one, which blew up in my document. I just set the print resolution to 300x300 and everything is fine again, but is there a way to override the printer resolution?
Just define the size you want to get? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
2011/7/2 Henning Hraban Ramm
Am 2011-07-02 um 12:49 schrieb Cecil Westerhof:
When using \externalfigure it uses the print resolution for putting the
graphic into the document. Until now all my graphics had a resolution of 300x300, but I just got one with a much lower one, which blew up in my document. I just set the print resolution to 300x300 and everything is fine again, but is there a way to override the printer resolution?
Just define the size you want to get?
I do not know the size. This is depending on the resolution of the picture. What I want is that if I have two pictures with a resolution of 729x414 that they take up the same amount of space in the document. Now if the first picture has a printer resolution of 300x300 DPI and the second a printer resolution of 100x100 DPI, the second picture will be three times as wide and three times as high. Not very nice. -- Cecil Westerhof
Am 2011-07-02 um 13:53 schrieb Cecil Westerhof:
I do not know the size. This is depending on the resolution of the picture. What I want is that if I have two pictures with a resolution of 729x414 that they take up the same amount of space in the document. Now if the first picture has a printer resolution of 300x300 DPI and the second a printer resolution of 100x100 DPI, the second picture will be three times as wide and three times as high. Not very nice.
Then you can only normalize your resolutions beforehand (or perhaps using the filter module) with some image processing tool, e.g. ImageMagick, GraphicsConverter, Photoshop... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
On Sat, Jul 2, 2011 at 21:31, Henning Hraban Ramm wrote:
Am 2011-07-02 um 13:53 schrieb Cecil Westerhof:
I do not know the size. This is depending on the resolution of the picture. What I want is that if I have two pictures with a resolution of 729x414 that they take up the same amount of space in the document. Now if the first picture has a printer resolution of 300x300 DPI and the second a printer resolution of 100x100 DPI, the second picture will be three times as wide and three times as high. Not very nice.
Then you can only normalize your resolutions beforehand (or perhaps using the filter module) with some image processing tool, e.g. ImageMagick, GraphicsConverter, Photoshop...
I never used that feature and I don't know the answer, but I agree with Cecil that one should be able to set a fixed resolution for all images with some command without having to modify images with external tools. pdfTeX supports that with image_resolution 300 in pdftex.cfg for example (but maybe only if resolution is not defined). Browsing the sources would suggest that \setupexternalfigures[resolution=300] could work, but it doesn't change anything. One also finds \setupsystem[resolution=...], but no effect either. Mojca
On 4-7-2011 8:20, Mojca Miklavec wrote:
On Sat, Jul 2, 2011 at 21:31, Henning Hraban Ramm wrote:
Am 2011-07-02 um 13:53 schrieb Cecil Westerhof:
I do not know the size. This is depending on the resolution of the picture. What I want is that if I have two pictures with a resolution of 729x414 that they take up the same amount of space in the document. Now if the first picture has a printer resolution of 300x300 DPI and the second a printer resolution of 100x100 DPI, the second picture will be three times as wide and three times as high. Not very nice.
Then you can only normalize your resolutions beforehand (or perhaps using the filter module) with some image processing tool, e.g. ImageMagick, GraphicsConverter, Photoshop...
I never used that feature and I don't know the answer, but I agree with Cecil that one should be able to set a fixed resolution for all images with some command without having to modify images with external tools.
pdfTeX supports that with image_resolution 300 in pdftex.cfg for example (but maybe only if resolution is not defined).
Browsing the sources would suggest that \setupexternalfigures[resolution=300]
That has a different purpose ... it's passed to the optional converter.
could work, but it doesn't change anything. One also finds \setupsystem[resolution=...], but no effect either.
Indeed, that one is obsolete in mkiv (had to do with dvi). But you can (still) set \pdfimageresolution although it might get protected in mkiv some day. Best one can fix the image and make sure that it has the right resolution info embedded (one of the tags). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (5)
-
Cecil Westerhof
-
Hans Hagen
-
Henning Hraban Ramm
-
Martin Schröder
-
Mojca Miklavec