[ale] batch image resizing

Preston Boyington preston.lists at gmail.com
Tue Apr 10 20:30:38 EDT 2007


George Allen wrote:
<snipped>
> Anyway, hope it's useful.
> 

thanks. i will definitely take a look.

lol, as it is my current script has more pipes than the Wanamaker Organ...

i haven't figured out how to unzip the file into a directory and then go
inside that directory to do the resizing...yet.

currently it is renaming the files correctly, unzipping the files, and
resizing the files...just all in the main directory.

i found a program called "unp" in Debian that i am going to try and use:

unp = unpack (almost) everything is a Perl script which acts as a simple
front-end for extracting many types of archive files

as embarrassing as it is here is what i currently have:

ls -d *.cbr | sed 's/\(.*\).cbr$/mv "&" "\1.rar"/' | sh | ls -d *.cbz |
sed 's/\(.*\).cbz$/mv "&" "\1.zip"/' | sh | unp * | mogrify -resize
x1280 "*.jpg"

obviously it's not finished.



More information about the Ale mailing list