Hello, I have problems with scaling of big png images. Scaling works ok with XeTeX, but fails with both pdfTeX and LuaTeX, so it might be a problem in the engine, not necessary in ConTeXt. The image comes out with several cm white border when it should occupy the whole page. Here are the testing files (temporary location): http://www.mars2008.si/context/ \defineoverlay [MyGraphic] [{\externalfigure[graphic][heigh=\paperheight]}] \setupbackgrounds[page][background=MyGraphic] \starttext whatever \stoptext + a big png graphic. When I decrease resolution, the white border around graphic shrinks. Mojca pdfTeX 3.1415926-1.40.9-2.2 (Web2C 7.5.7) This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown MtxRun | current version: 2008.11.10 21:40 (same problem on TL)
Mojca Miklavec wrote:
Hello,
I have problems with scaling of big png images. Scaling works ok with XeTeX, but fails with both pdfTeX and LuaTeX, so it might be a problem in the engine, not necessary in ConTeXt. The image comes out with several cm white border when it should occupy the whole page.
Here are the testing files (temporary location): http://www.mars2008.si/context/
\defineoverlay [MyGraphic] [{\externalfigure[graphic][heigh=\paperheight]}] \setupbackgrounds[page][background=MyGraphic] \starttext whatever \stoptext
+ a big png graphic. When I decrease resolution, the white border around graphic shrinks.
Mojca
pdfTeX 3.1415926-1.40.9-2.2 (Web2C 7.5.7) This is LuaTeX, Version snapshot-0.30.2-2008102016, build unknown MtxRun | current version: 2008.11.10 21:40 (same problem on TL)
you have a typo: [heigh=\paperheight] must be: height (add a t) the three versions are now unscaled: 3.653.484 luatex.pdf 3.672.711 pdftex.pdf 5.498.535 xetex.pdf 3.654.573 graphic.png although xetex seem sto do something funny with the image (it's the slowest of the three runs so maybe some resampling takes place) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Thu, Nov 13, 2008 at 1:44 PM, Mojca Miklavec
Hello,
I have problems with scaling of big png images. Scaling works ok with XeTeX, but fails with both pdfTeX and LuaTeX, so it might be a problem in the engine, not necessary in ConTeXt. The image comes out with several cm white border when it should occupy the whole page.
Here are the testing files (temporary location): http://www.mars2008.si/context/
\defineoverlay [MyGraphic] [{\externalfigure[graphic][heigh=\paperheight]}] ^^^^^ height
You could also write \defineoverlay[MyGraphic][\overlayfigure{graphic}]
\setupbackgrounds[page][background=MyGraphic] \starttext whatever \stoptext
+ a big png graphic. When I decrease resolution, the white border around graphic shrinks.
Mojca
Wolfgang
Mojca Miklavec wrote:
Hello,
I have problems with scaling of big png images. Scaling works ok with XeTeX, but fails with both pdfTeX and LuaTeX, so it might be a problem in the engine, not necessary in ConTeXt. The image comes out with several cm white border when it should occupy the whole page.
Here are the testing files (temporary location): http://www.mars2008.si/context/
\defineoverlay [MyGraphic] [{\externalfigure[graphic][heigh=\paperheight]}] ^ Missing a 't' here. When I add that, I get a 297mm high by about 190mm wide image. That seems about right to me ?
Best wishes, Taco
On Thu, Nov 13, 2008 at 1:58 PM, Taco Hoekwater wrote:
Mojca Miklavec wrote:
Hello,
I have problems with scaling of big png images. Scaling works ok with XeTeX, but fails with both pdfTeX and LuaTeX, so it might be a problem in the engine, not necessary in ConTeXt. The image comes out with several cm white border when it should occupy the whole page.
Here are the testing files (temporary location): http://www.mars2008.si/context/
\defineoverlay [MyGraphic] [{\externalfigure[graphic][heigh=\paperheight]}] ^ Missing a 't' here. When I add that, I get a 297mm high by about 190mm wide image. That seems about right to me ?
I need to get retired from using TeX. Sorry :( The fact that confused me most is that XeTeX seemed to do it right, and the previous version of image appeared to be OK as well. But there the image was oversized anyway. Sorry again. (TeX bugs strike so often that I tend to forget to double-check my own mistakes when weird things start happening.) Mojca
participants (4)
-
Hans Hagen
-
Mojca Miklavec
-
Taco Hoekwater
-
Wolfgang Schuster