Page 1 of 1

Crash when working with EXIF profile in JPG image

Posted: 2014-08-18T06:43:39-07:00
by vanekjar
When trying to delete profile data from an image the program consumes all the available memory and then is killed by OOM killer.

Code: Select all

convert image_EXIF.jpg +profile "*" output.jpg
Testing image: https://dl.dropboxusercontent.com/u/155 ... e_EXIF.jpg

Tested in current version 6.8.9-7
It worked correcty in version 6.8.9-3

Re: Crash when working with EXIF profile in JPG image

Posted: 2014-08-18T09:33:25-07:00
by fmw42
convert +profile "*" image_EXIF.jpg
Bad syntax. No output image. Nevertheless, this does not complete for me on IM 6.8.9.6 Q16 Mac OSX

Code: Select all

convert image_EXIF.jpg +profile "*" test.jpg
But this works just fine.

Code: Select all

convert -define profile:skip="*" image_EXIF.jpg test.jpg
So does this.

Code: Select all

convert image_EXIF.jpg -strip test.jpg

Re: Crash when working with EXIF profile in JPG image

Posted: 2014-08-22T09:54:26-07:00
by dlemstra
I just committed a patch to fix this. This will be available in ImageMagick 6.8.9-8 Beta tomorrow.

Re: Crash when working with EXIF profile in JPG image

Posted: 2014-08-26T12:28:21-07:00
by acmeinc
dlemstra wrote:I just committed a patch to fix this. This will be available in ImageMagick 6.8.9-8 Beta tomorrow.
Could you please post the Revision ID's associated with this change?

Edit: Looks like it may be http://trac.imagemagick.org/changeset/16359 actually.

Re: Crash when working with EXIF profile in JPG image

Posted: 2014-08-27T05:04:27-07:00
by cookie
you can use

Code: Select all

-strip
instead. I had the same problem.

Re: Crash when working with EXIF profile in JPG image

Posted: 2014-08-27T12:33:46-07:00
by enobe.de
Same issue here.
MacOSX 10.9; ImageMagick @6.8.9-7_0+x11 installed via macports.

For PNG and JPG files including EXIF meta data, I need to strip meta data, using 'mogrify -strip file.ext' to get convert to work, without crash.
My usecase: Web-CMS TYPO3 is set to use imagemagick to convert/scale images. If I running CMS installation with latest ImageMagick 6.8.9-7, any changes for size of existing images - which includes EXIF meta data - ends up in a memory-crash for hole operating-system.

Re: Crash when working with EXIF profile in JPG image

Posted: 2014-08-27T13:07:49-07:00
by fmw42
You need IM 6.8.9.8 beta to get +profile working again as per the note above from dlemstra.

Re: Crash when working with EXIF profile in JPG image

Posted: 2014-08-28T05:55:58-07:00
by enobe.de
THX. Current IM 6.8.9.8 beta solves the problem.
Wasn't easy to install, using macports.