Crash when working with EXIF profile in JPG image

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
vanekjar
Posts: 2
Joined: 2014-08-14T01:17:37-07:00
Authentication code: 6789

Crash when working with EXIF profile in JPG image

Post 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
Last edited by vanekjar on 2014-08-18T09:37:08-07:00, edited 2 times in total.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Crash when working with EXIF profile in JPG image

Post 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
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Crash when working with EXIF profile in JPG image

Post by dlemstra »

I just committed a patch to fix this. This will be available in ImageMagick 6.8.9-8 Beta tomorrow.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
acmeinc
Posts: 1
Joined: 2014-08-26T12:23:13-07:00
Authentication code: 6789

Re: Crash when working with EXIF profile in JPG image

Post 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.
cookie
Posts: 7
Joined: 2014-08-25T07:15:07-07:00
Authentication code: 6789

Re: Crash when working with EXIF profile in JPG image

Post by cookie »

you can use

Code: Select all

-strip
instead. I had the same problem.
enobe.de
Posts: 2
Joined: 2014-08-27T12:19:35-07:00
Authentication code: 6789

Re: Crash when working with EXIF profile in JPG image

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Crash when working with EXIF profile in JPG image

Post by fmw42 »

You need IM 6.8.9.8 beta to get +profile working again as per the note above from dlemstra.
enobe.de
Posts: 2
Joined: 2014-08-27T12:19:35-07:00
Authentication code: 6789

Re: Crash when working with EXIF profile in JPG image

Post by enobe.de »

THX. Current IM 6.8.9.8 beta solves the problem.
Wasn't easy to install, using macports.
Post Reply