Convert -thumbnail error

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
z0mbee

Convert -thumbnail error

Post by z0mbee » 2008-09-22T07:38:40-07:00

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

Bonzo
Posts: 2970
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Convert -thumbnail error

Post by Bonzo » 2008-09-22T07:41:26-07:00

Try -resize instead of -thumbnail, I would say you were on an old version.

This should tell you your version

Code: Select all

convert -version
Latest version is around 6.4.3-7

z0mbee

Re: Convert -thumbnail error

Post by z0mbee » 2008-09-22T09:23:56-07:00

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

Bonzo
Posts: 2970
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Convert -thumbnail error

Post by Bonzo » 2008-09-22T09:44:33-07:00

I am afraid I can not help with the install problem :(

User avatar
anthony
Posts: 8882
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert -thumbnail error

Post by anthony » 2008-09-22T18:26:16-07:00

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

Code: Select all

   convert -list command
(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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

z0mbee

Re: Convert -thumbnail error

Post by z0mbee » 2008-09-23T01:36:13-07:00

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?

User avatar
anthony
Posts: 8882
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Convert -thumbnail error

Post by anthony » 2008-09-23T21:34:51-07:00

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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/

rmagick
Posts: 245
Joined: 2006-03-16T17:30:48-07:00
Location: Durham, NC, USA

Re: Convert -thumbnail error

Post by rmagick » 2008-09-25T16:32:56-07:00

I had this same error. The solution for me was to type this at the command prompt after compiling and installing:

Code: Select all

ldconfig
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.

Post Reply