Re: CALL for DISCUSSION: eXIf 20170115
Glenn Randers-Pehrson <[email protected]>
| Newsgroups | gmane.comp.graphics.png.general |
|---|---|
| Message-ID | <CA+PdXcuHzs9MdZmzccw9w0MWbj__nOEEUV2fK84nKVC9NspvPw@mail.gmail.com> |
On Fri, Jan 27, 2017 at 9:19 PM, Glenn Randers-Pehrson <[email protected]> wrote: > > > On Tue, Jan 24, 2017 at 11:15 PM, John Bowler < > [email protected]> wrote: > >> On Tue, Jan 24, 2017 at 7:13 PM, Glenn Randers-Pehrson >> < >> + unsigned char temp[500000]; >> >> >> ROTFL >> > Indeed. You were looking at work in progress. Now it uses the two-pass decoding method from libpng-1.4.1beta06 and respects the PNG_USER_CHUNK_MALLOC_MAX setting (which defaults to 8 000 000 bytes in both IM and GM). The allocation of "temp" is now exactly inflated_length+6 (6 bytes to allow room to add "Exif\0\0" back in). Checked in to both GraphicsMagick and ImageMagick (v7) for testing. Off by default, build with CPPFLAGS="-DexIf_SUPPORTED -DzxIf_SUPPORTED" to test. To do: zxIf_write_SUPPORTED. Glenn ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ png-mng-misc mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/png-mng-misc