|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Learn four approaches for automating Excel logic, along with advantages and disadvantages of each. Read all about it in the free whitepaper: “Tapping into Excel Logic from Java: Four Server-Based Alternatives” Download Now! |
|
#1
|
|||
|
|||
|
I've got a directory full of images that are displayed on the web. I upload them directly using FTP.
Using the ImageMagick command "convert", I can resize the uploaded images quickly and easily. However, as I'm not the only one uploading images to this directory, I would like to automate the process. Is there a way to make a shell script to run the "convert" command whenever a new image is uploaded to a specific directory? Any help is greatly appreciated! |
|
#2
|
|||
|
|||
|
which commands and parameters do you use to resize your image files?
-Steven |
|
#3
|
|||
|
|||
|
Thanks for the reply!
Here's the command that I've been using: convert -size 502x334 1.jpg 1.jpg |
|
#4
|
|||
|
|||
|
Any help with this?
|
|
#5
|
|||
|
|||
|
Some versions of ftp support the site exec command or the !mycommand.
There is a tutorial with examples of advanced scripting for ftp in the FAQ at www.unix.com - try there. http://www.unix.com/showthread.php?s=&threadid=14020 |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Shell script to resize image |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|