the error i got was..
No decode delegate for image formatSo, I tried to rename my file to gif and test but i got the same error again. I thought that my installation was not able to find the module responsible of decoding different formats.
I couldn't find any solution to the problem, but i figured out that I was wrong about renaming the file. this was not enough as a work around.
I reinstalled the imageMagick another time but with some more complex steps this time. this time I will add the PNG support to my installation.
- Install Fink.
- Add /sw/bin is in your path. (on the root vi .bash_login)
- add symbolic link: cd /Developer/SDKs/MacOSX10.4u.sdk
ln -s sw /sw - Download the libpng lib. Make sure to read the INSTALL file of the downloaded folder. It will guide you to install the zlib as well.
- Make sure the files are included in your include folder . in /usr/local/include. The files you'll be looking for are named "png.h"
gunzip -c ImageMagick.tar.gz | tar xvf -
- cd ImageMagick-3.8
- ./configure --prefix=/sw --with-quantum-depth=16 \
--disable-dependency-tracking --with-x=yes \
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib/ \
--without-perl --with-png=yes - read the console and make sure that the PNG format was supported successfully.
- make
- sudo make install
- In case you need to check a list of supported format from of the ImageMagick run the following command $convert -list format.
- you can apply this for all formats you need (jpeg, tiff...etc). the ImageMagick doesn't support all formats by default.
No comments:
Post a Comment