On 05/25/11 16:39, Hans Hagen wrote:
> On 25-5-2011 2:43, Peter Rolf wrote:
>> Hi,
>>
>> I just made a one pager (TEXpage) out of a big png graphic (5900x4094).
>> The compressed size of the graphics is normally around 1.37MB on the
>> highest png compress level (9) and 1.32MB after using optipng (only
>> around 3% reduction this time). To my surprise the size of the final PDF
>> was about 2.3MB. After adding '\pdfcompresslevel9' the size went down to
>> 1.48MB. Still not what I wanted...
>>
>> So I was wondering: is there an option to embed the png graphic as it is
>> (no re-compression)? Otherwise the time consuming usage of optipng would
>> be a complete waste of time. Believe it or not, but size matters  :-)

Well, that depends on what optipng does to your image. PDF can do some
types of png compression natively (no re-compression), but for that the
png has to follow some rules: not everything in the png spec is
supported that way. If you see '<png copy>' during inclusion, then the
png follows those rules. Otherwise, it is included in recompressed form,
where everything is possible that is allowed by png, but it will not
be as small as the original.

The finer details are in writepng.w from the luatex source and/or
the pdf specification, it is much too detailed to repeat here.

Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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
___________________________________________________________________________________

Reply via email to