[Linux-Biella] Script image resize

Federico 'Pain' Pistono fppain a gmail.com
Mar 7 Giu 2005 12:40:46 CEST


Ho fatto sto script in bash, ma non funge se trova degli spazi o caratteri 
speciali nel nome, any help?

€ cat /usr/local/bin/fppresize 
#!/bin/bash

# Go through all specified images
for IMAGE in $*
do
# Copy original temporarily to another file
mv "$IMAGE" "$IMAGE".orig
# Resize original image to 800x600
convert -resize 800x600 "$IMAGE".orig "$IMAGE"
# Remove temporary copy of the original
rm -rf "$IMAGE".orig
done

????

-- 
Federico 'Pain' Pistono - Scream for me....
Department of Computer Science - Verona, Italy
My website ::::::::::::::::
www.federicopistono.org<http://www.federicopistono.org>
My personal website :: http://pain.altervista.org
Ex-College Website :::: http://pain.altervista.org/flatnukeuwcad

Linux Registered User #340392
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: http://ml.bmm.it/pipermail/linux/attachments/20050607/45e38b7f/attachment.html


Maggiori informazioni sulla lista Linux