Page 1 of 1
Convert -thumbnail error
Posted: 2008-09-22T07:38:40-07:00
by z0mbee
Hi,
Please forgive any obvious things i miss here - i'm quite new to Imagemagick and *NIX in general :S
I have installed (what i believe to be) the latest version of Imagemagick to be used by an install of Mediawiki. It works fine for images, including SVG files, but won't create thumbnails. Mediawiki gives the error:
Code: Select all
Error creating thumbnail: /usr/bin/convert: Unrecognized option (-thumbnail).
I have SSH'd into my server and tried to run the command from there, and it seems to agree with Mediawiki:
Code: Select all
$ convert -thumbnail logo: logo.gif
convert: Unrecognized option (-thumbnail).
Am i missing something obvious? Any help would be greatly appreciated.
Thanks,
Gary
Re: Convert -thumbnail error
Posted: 2008-09-22T07:41:26-07:00
by Bonzo
Try -resize instead of -thumbnail, I would say you were on an old version.
This should tell you your version
Latest version is around 6.4.3-7
Re: Convert -thumbnail error
Posted: 2008-09-22T09:23:56-07:00
by z0mbee
Hi,
Thanks for the quick reply. I appear to have:
Code: Select all
$ convert -version
Version: ImageMagick 5.5.6 04/01/03 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 2003 ImageMagick Studio LLC
This is odd, because i removed the previous install, downloaded the latest version from this site. Have i missed something? The make install did end with this, but i'm not sure of the relevance:
Code: Select all
make[3]: *** [pure_site_install] Error 255
make[3]: Leaving directory `/usr/local/src/ImageMagick-6.4.3/PerlMagick'
make[2]: *** [install-exec-perl] Error 2
make[2]: Leaving directory `/usr/local/src/ImageMagick-6.4.3'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/usr/local/src/ImageMagick-6.4.3'
make: *** [install] Error 2
Re: Convert -thumbnail error
Posted: 2008-09-22T09:44:33-07:00
by Bonzo
I am afraid I can not help with the install problem
Re: Convert -thumbnail error
Posted: 2008-09-22T18:26:16-07:00
by anthony
z0mbee wrote:Hi,
Please forgive any obvious things i miss here - i'm quite new to Imagemagick and *NIX in general :S
I have installed (what i believe to be) the latest version of Imagemagick to be used by an install of Mediawiki. It works fine for images, including SVG files, but won't create thumbnails. Mediawiki gives the error:
Code: Select all
Error creating thumbnail: /usr/bin/convert: Unrecognized option (-thumbnail).
I have SSH'd into my server and tried to run the command from there, and it seems to agree with Mediawiki:
Code: Select all
$ convert -thumbnail logo: logo.gif
convert: Unrecognized option (-thumbnail).
Am i missing something obvious? Any help would be greatly appreciated.
Thanks,
Gary
What version of IM are you running?
Does -thumbnail appear in the output from
(DON'T COPY the output list to the forum, just tell us it it appears or if you get an error)
Also -thumbnail needs a argument which you have not provided try something like
Code: Select all
convert logo: -thumbnail 120x logo.gif
Also look at IM examples, Thumbnails for examples of how it should behave.
Re: Convert -thumbnail error
Posted: 2008-09-23T01:36:13-07:00
by z0mbee
Hmm... i'm now getting errors when just trying to run convert:
Code: Select all
$ convert -list command
convert: error while loading shared libraries: libMagickCore.so.1: cannot open shared object file: No such file or directory
Does this look like a broken install?
Re: Convert -thumbnail error
Posted: 2008-09-23T21:34:51-07:00
by anthony
I think you may have two versions installed.
First remove (forcefully) all ImageMagick Packages.
Then ensure the system is clear using these commands (check then over carefully, to make sure they don't do anything they shouldn't. I make no gurantees. I use these of a Fedora linux system
Code: Select all
rpm -e --nodeps `rpm -q ImageMagick ImageMagick-perl`
rm -rf /usr/lib/ImageMagick-*
rm -rf /usr/lib/lib{Magick,Wand}*
rm -rf /usr/share/ImageMagick-*
rm -rf /usr/share/doc/ImageMagick-*
rm -rf /usr/include/{Magick++,magick,wand}
rm -rf /usr/lib/perl5/site_perl/*/i386-linux-thread-multi/Image/Magick*
rm -rf /usr/lib/perl5/site_perl/*/i386-linux-thread-multi/auto/Image/Magick*
rm -rf /usr/share/man/man?/*Magick*
Now install IM, preferably built as a package for your system.
Re: Convert -thumbnail error
Posted: 2008-09-25T16:32:56-07:00
by rmagick
I had this same error. The solution for me was to type this at the command prompt after compiling and installing:
I'm still something of a beginner, but as I understand it this "registers" any new libraries you've installed.
Why this isn't included in the installation instructions is beyond me.
Probably because ldconfig typically requires root permission, something that most users don't run with by default, and those who do have root access may be expected to know about ldconfig already.