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
Make thumbnail
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Make thumbnail
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 *
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
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
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
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
Sorry i forgot to tell you that , yes i want to keep images in same format.
Regards,
Web Solution Provider
http://www.websolpro.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Make thumbnail
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.
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
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
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
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Make thumbnail
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
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
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Make thumbnail
Quote the star ('*') so that IM expands the file list rather than the shell. That should stop the argument list is too long.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
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.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/