diff options
author | Hartmut Henkel <hartmut_henkel@gmx.de> | 2011-05-11 06:35:25 +0000 |
---|---|---|
committer | Hartmut Henkel <hartmut_henkel@gmx.de> | 2011-05-11 06:35:25 +0000 |
commit | 5534b53e154881fbdcff3b776df5a751ee4e1f20 (patch) | |
tree | f3c85dc60e58521d40e78cf36d52d9c0b1b2c4db /Build/source/texk | |
parent | 15bc7ad72b79abb63db7107be1cb4dd466a1ab52 (diff) |
fix PNG writing
git-svn-id: svn://tug.org/texlive/trunk@22415 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/writepng.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/writepng.c b/Build/source/texk/web2c/pdftexdir/writepng.c index 4388498b79b..7c3abc0a0ad 100644 --- a/Build/source/texk/web2c/pdftexdir/writepng.c +++ b/Build/source/texk/web2c/pdftexdir/writepng.c @@ -516,10 +516,6 @@ void write_png(integer img) fixedimagehicolor = 0; pdf_puts("/Type /XObject\n/Subtype /Image\n"); - pdf_printf("/Width %i\n/Height %i\n/BitsPerComponent %i\n", - (int) png_width(img), - (int) png_height(img), (int) png_bit_depth(img)); - pdf_puts("/ColorSpace "); /* simple transparency support */ if (png_get_valid(png_ptr(img), png_info(img), PNG_INFO_tRNS)) { png_set_tRNS_to_alpha(png_ptr(img)); @@ -554,6 +550,11 @@ void write_png(integer img) /* reset structure */ (void) png_set_interlace_handling(png_ptr(img)); png_read_update_info(png_ptr(img), png_info(img)); + + pdf_printf("/Width %i\n/Height %i\n/BitsPerComponent %i\n", + (int) png_width(img), + (int) png_height(img), (int) png_bit_depth(img)); + pdf_puts("/ColorSpace "); if (png_copy && fixedpdfminorversion > 1 && png_interlace_type(img) == PNG_INTERLACE_NONE && (png_color_type(img) == PNG_COLOR_TYPE_GRAY |