Page 1 of 1

Can't make convert psd to jpg work

Posted: 2011-06-09T14:13:36-07:00
by celia_ccs
Hi,

I was using the 6.2 version of IM on a CentOS Unix release. The PSD convert (convert img.psd -flatten img.jpg) was working but outputing broken images like noisy pink/blue/green image, while the source was a black text on a white background. I realised that 70% of the converts were going wrong! img.psd[0] would go wrong on 100% of the convert.

6.2 was installed from yum. I uninstalled it and reinstalled 6.7 from source. But with the 6.7 no way on having a psd convert!
If I convert a 50Mo img.psd (convert img.psd[0] img.jpg or convert img.psd -flatten img.jpg) I will obtain a non working 150Mo img.jpg. The img.jpg is actually a psd! If I rename it to img.psd it works on photoshop.
So my convert just converts psd to heavier psds..

My # make check; generates this:

FAIL: wand/wandtest.sh
===========================================
1 of 12 tests failed
See ./test-suite.log
Please report to http://www.imagemagick.org
===========================================

My # convert -list configure; gives:
DELEGATES zlib

But all jpg, png and tif basic tests work just fine.

I tryed many psd, from diferent sources, and none works.

I really don't know what to do. Could someone help, please?

Re: Can't make convert psd to jpg work

Posted: 2011-06-09T15:20:29-07:00
by fmw42
DELEGATES zlib
I am not an expert on unix or IM installs, but it looks like you need to install delegates for png, tiff, jpg, etc.

For example on my Max OSX

DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms2 lqr lzma mpeg openexr png rsvg tiff x11 xml zlib

You might also consider upgrading your IM (after installing the delegates) which is at 6.7.0.6 (so you are about 500 versions old).

some delegates can be found at http://www.imagemagick.org/download/delegates/

Are you sure you do not have multiple versions of IM installed?

you can use the unix which command to find convert, for example on my system


which convert
/usr/local/bin/convert

So I only have one convert in /usr/local/bin.

Re: Can't make convert psd to jpg work

Posted: 2011-06-10T05:38:15-07:00
by celia_ccs
Hi fmw42,

Yes the 6.2 release was a really old version I guess, but it's the version that the system installs when I do # yum install ImageMagick. Surprising.
This is why I have installed the 6.7 from source, and have no more convert working =(

The delegates are strange insdeed, I will try installing delegates from your link.

Thanks!


Oh and I have already looked to find any IM files with locate before reinstalling and got them erased before resintalling.
And I also have only one convert: # which convert
/usr/local/bin/convert

Re: Can't make convert psd to jpg work

Posted: 2011-06-10T05:47:22-07:00
by celia_ccs
Does this mean that PSD convert should work?

# identify -list format | grep PSD
PSB* PSD rw+ Adobe Large Document Format
PSD* PSD rw+ Adobe Photoshop bitmap

Re: Can't make convert psd to jpg work

Posted: 2011-06-10T07:29:37-07:00
by celia_ccs
Ok, I have installed all the delegates I could find and resintalled IM. Now psd conversion to png and gif works. That's a good news.

But... my conversion to jg pops this:
convert: Wrong JPEG library version: library is 62, caller expects 80 logo.jpg @ error/jpeg.c/JPEGErrorHandler/296.

I'll try to find the correct library but if someone has an idea on which one I should use it would be helpfull.
thanks

Re: Can't make convert psd to jpg work

Posted: 2011-06-10T09:53:24-07:00
by fmw42
try uninstalling libjpeg6 and re-install v8 from http://www.ijg.org/ then re-install IM

Re: Can't make convert psd to jpg work

Posted: 2011-06-10T10:56:10-07:00
by celia_ccs
Hi fmw42,

Actually when instaling the c7 or v8 did not work.
Installing libjpeg6 did work.

Thanks