[Linux-Biella] Script image resize

Raffaele Salmaso raffaele a salmaso.org
Mar 7 Giu 2005 13:04:58 CEST


Federico 'Pain' Pistono ha scritto:
> 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 $*
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

-- 
()_() | Always keep the Titanic in mind when I talk        | +----
(o.o) | about security or safety, meaning that nothin      | +---+
'm m' | is fully secure.                                   |  O  |
(___) |              raffaele punto salmaso presso libero punto it
GPG fingerprint 1CF5 51D4 E528 EB87 9977  B277 BE8C BF1E 620C 40ED


Maggiori informazioni sulla lista Linux