On Wed, May 30, 2012 at 05:35:45PM +0200, Mathieu Malaterre wrote: > Package: libjpeg-progs > Version: 8b-1 > Severity: normal > > > Looks like cjpeg does not handle large image. It fails with: > > $ dmesg > [...] > [30479.166496] Out of memory: Kill process 23549 (cjpeg) score 973 or > sacrifice child > [30479.166500] Killed process 23549 (cjpeg) total-vm:567775256kB, > anon-rss:15702792kB, file-rss:116kB > > When running: > > $ cjpeg -progressive -arithmetic -rgb -block 1 -outfile huge1.jpg -quality > 100 huge.ppm > > where: > > $ head -3 huge.ppm > P6 > 46000 32914 > 255 > > Would be nice to give up early instead or taking all the memory
Hello Mathieu, Please look at the manpage. There is both an environment variable JPEGMEM and a flag -maxmemory to limit the memory usage. This is a benefit of libjpeg8 over libjpeg62. Cheers, -- Bill. <[email protected]> Imagine a large red swirl here. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

