ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* problem scaling big png images
@ 2008-11-13 12:44 Mojca Miklavec
  2008-11-13 12:53 ` Hans Hagen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mojca Miklavec @ 2008-11-13 12:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thanh Han The

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)
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problem scaling big png images
  2008-11-13 12:44 problem scaling big png images Mojca Miklavec
@ 2008-11-13 12:53 ` Hans Hagen
  2008-11-13 12:55 ` Wolfgang Schuster
  2008-11-13 12:58 ` Taco Hoekwater
  2 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2008-11-13 12:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thanh Han The

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
-----------------------------------------------------------------
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problem scaling big png images
  2008-11-13 12:44 problem scaling big png images Mojca Miklavec
  2008-11-13 12:53 ` Hans Hagen
@ 2008-11-13 12:55 ` Wolfgang Schuster
  2008-11-13 12:58 ` Taco Hoekwater
  2 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2008-11-13 12:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Nov 13, 2008 at 1:44 PM, Mojca Miklavec
<mojca.miklavec.lists@gmail.com> 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]}]
                                                        ^^^^^
                                                        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
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problem scaling big png images
  2008-11-13 12:44 problem scaling big png images Mojca Miklavec
  2008-11-13 12:53 ` Hans Hagen
  2008-11-13 12:55 ` Wolfgang Schuster
@ 2008-11-13 12:58 ` Taco Hoekwater
  2008-11-13 13:04   ` Mojca Miklavec
  2 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2008-11-13 12:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thanh Han The



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
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: problem scaling big png images
  2008-11-13 12:58 ` Taco Hoekwater
@ 2008-11-13 13:04   ` Mojca Miklavec
  0 siblings, 0 replies; 5+ messages in thread
From: Mojca Miklavec @ 2008-11-13 13:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thanh Han The

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
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-11-13 13:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-13 12:44 problem scaling big png images Mojca Miklavec
2008-11-13 12:53 ` Hans Hagen
2008-11-13 12:55 ` Wolfgang Schuster
2008-11-13 12:58 ` Taco Hoekwater
2008-11-13 13:04   ` Mojca Miklavec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).