Image convert causes broken image (partially converted)

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Joshva
Posts: 7
Joined: 2016-03-31T19:58:32-07:00
Authentication code: 1151

Image convert causes broken image (partially converted)

Post by Joshva »

Hi

I have an issue where occassionaly images are incorrectly converted. They partially convert resulting in the following: https://www.decorilla.com/img/original-927.jpg

I'm running the following commands via the convert command via IM4Java 1.4.0

op.resize 932>
op.background #333333
gravity center
extent 932
crop 927 0 0 0

Please note I have asynchronous set to false in IM4Java and am protecting this code using a semaphore


Any help would be greatly appreciated!

ImageMagick version 6.7.8-9 Q16 and Centos

Thanks,
Josh
Last edited by Joshva on 2016-04-01T16:50:01-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: Image convert causes broken image (partially converted)

Post by fmw42 »

Did you check your IM_Temporary directory (often /tmp) to see if it is full. Please always provide your IM version and platorm.
Joshva
Posts: 7
Joined: 2016-03-31T19:58:32-07:00
Authentication code: 1151

Re: Image convert causes broken image (partially converted)

Post by Joshva »

I've added the version ImageMagick version 6.7.8-9 Q16 and Centos. I still don't know how to find the IM_Temporary directory. I don't see it in /tmp
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Image convert causes broken image (partially converted)

Post by fmw42 »

I cannot really suggest much more here about your problem. But note that your IM version was during some major changes to IM colorspace. So I would suggest that you upgrade if you can. See viewtopic.php?f=4&t=21269
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Image convert causes broken image (partially converted)

Post by snibgo »

I suggest you try "-synchronize". See http://www.imagemagick.org/script/comma ... ynchronize
snibgo's IM pages: im.snibgo.com
Joshva
Posts: 7
Joined: 2016-03-31T19:58:32-07:00
Authentication code: 1151

Re: Image convert causes broken image (partially converted)

Post by Joshva »

Awesome will do. Thank you!@
Post Reply