jpg convert causes ever-growing convert file & evntual crash

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
sdupont73

jpg convert causes ever-growing convert file & evntual crash

Post by sdupont73 »

This is quite a doozy of a bug.

I'm running version 6.2.8 Q16 and running the following command:
/usr/bin/convert -strip -colorspace RGB -scale 2048x2048 "/tmp/bknew.jpg" "/tmp/new.convert.jpg"

I've run this type of command on jpgs thousands of times without errors. But when I atttempt to convert this particular jpg, the convert file created just continues to grow and grow, the process never ends, and, unless I manually kill the process, I eventually run out of hard drive space, crashing my server.

Is this a known issue with this version of image magick? Will upgrading fix this bug?

If you would like the jpg in question that causes this, let me know where I can send it. (its ~12MB in size. note that I can convert other large files successfully)
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: jpg convert causes ever-growing convert file & evntual crash

Post by el_supremo »

Just a shot from the hip. The syntax you are using is from the old V5.
See if this makes any difference:

Code: Select all

/usr/bin/convert  "/tmp/bknew.jpg" -strip -colorspace RGB -scale 2048x2048 "/tmp/new.convert.jpg"
Pete
sdupont73

Re: jpg convert causes ever-growing convert file & evntual crash

Post by sdupont73 »

disregard reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: jpg convert causes ever-growing convert file & evntual crash

Post by magick »

Upgrading to a newer version of ImageMagick never hurts but this command is optimal:
  • convert -size 2048x2048 image.jpg -strip -colorspace RGB -resize 2048x2048 resize.jpg
Post Reply