Page 1 of 1
Make thumbnail
Posted: 2008-09-06T09:56:46-07:00
by websolpro
Hi,
I have a folder with the name "thumbnail" it has thousands of images, i want to make thumbnail of 70x70 and COPY these 70x70 thumbnail in "thumbs" folder.
Original files are here ;
/home/farukh/public_html/thumbnail
I want to have 70x70 thumbnails here
/home/farukh/public_html/thumbs
Please tell me how i can do it thanks.
Best Regards,
Web Solution Provider
Http://www.websolpro.com
Re: Make thumbnail
Posted: 2008-09-06T10:26:31-07:00
by fmw42
You have not told us what type of images are the originals and what type images you want to end up with.
Use mogrify, but be very careful. You may want to backup your images, first, in case you make any mistakes as they may disappear if you do not do it right.
See
http://www.imagemagick.org/Usage/basics/#mogrify
If you want the images to stay the same format:
cd /home/farukh/public_html/thumbnail
mogrify -path /home/farukh/public_html/thumbs -thumbnail 70x70 *
Re: Make thumbnail
Posted: 2008-09-06T10:39:57-07:00
by websolpro
Hi,
I got following error ,
-bash: /usr/bin/mogrify: Argument list too long
Than how i can do this ?
Best Regards,
Web Solution Provider
Http://www.websolpro.com
Re: Make thumbnail
Posted: 2008-09-06T10:44:25-07:00
by websolpro
Hi,
Sorry i forgot to tell you that , yes i want to keep images in same format.
Regards,
Web Solution Provider
http://www.websolpro.com
Re: Make thumbnail
Posted: 2008-09-06T11:30:34-07:00
by fmw42
Show me your exact command!
Do you need to preface all your commands with /usr/bin/...?
Show me how you get the IM version and what version you are using? Is it a very old version? The current version is 6.4.3-6
convert -version
or
/usr/bin/convert -version
Do either of these work?
Where is IM installed and was it from binary or did you install manually?
Are you running this remotely from a server or on your own local computer?
What is the full path to your folders from root? I believe mogrify needs a full path from root, but have not used it on a server before.
Re: Make thumbnail
Posted: 2008-09-06T14:35:31-07:00
by websolpro
Hi,
Here are all commands,
[~/public_html/thumbnail]# /usr/bin/convert -version
Version: ImageMagick 6.0.7 04/19/08 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2004 ImageMagick Studio LLC
[~/public_html/thumbnail]#
[~/public_html/thumbnail]# mogrify -path /home/farukh/public_html/thumbs -thumbnail 70x70 *
-bash: /usr/bin/mogrify: Argument list too long
[~/public_html/thumbnail]#
It is Linux Web Server, Cpanel is installed there, i have tried to update ImageMagick from WHM so i got there msgs.
RPM Package Installer
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Nothing to do
Install Complete
Do you know how i can do this ?
Best Regards,
Web Solution Provider
Http://www.websolpro.com
Re: Make thumbnail
Posted: 2008-09-06T14:53:16-07:00
by fmw42
Sorry, but I think your IM is way too old.
You will need to upgrade, but as this is on a server and you are using RPM, I cannot really advise.
I think you need to post another question just asking how to install an upgrade and repeat your commands for the install and its messages. Then someone who knows about doing that can help.
Where did you get your IM to install?
For source, see:
http://www.imagemagick.org/download/www ... .html#unix
http://www.imagemagick.org/script/advan ... lation.php
Or get one of the binaries from:
http://www.imagemagick.org/script/binary-releases.php
Re: Make thumbnail
Posted: 2008-09-07T22:34:47-07:00
by anthony
websolpro wrote:Hi,
I got following error ,
-bash: /usr/bin/mogrify: Argument list too long
Than how i can do this ?
Best Regards,
Web Solution Provider
Http://www.websolpro.com
Quote the star ('*') so that IM expands the file list rather than the shell. That should stop the argument list is too long.
Also do you ant it exaistly 70x70 or just fit in 70x70 which is what the default is. See IM examples, Thumbnailing. Read it as it has lots of things especially about JPEG images.