Once again proving that when you don't bother to look at the man page or even the post to which you're replying, you will sound like a complete idiot.borgqueenx said:that will fuck up photos??? if a photo is for example 1000*1000 and you make it 800*480 its gonna be all stretched out.dflemstr said:Script if you ever find the need to mass-resize images again:
This will take all images in a directory and sub-directories and resize them to 800x480. Exchange "png" for "jpg" or whatever if you have other image types.Code:#!/bin/sh extension=png for file in `find . -name "*.$extension"` do convert $file -adaptive-resize 800x480 ${file%.$extension}.resized.$extension done
Oh, and you need the package "imagemagick" (called something different in every distro)
I cutted off a piece with good old paint.
-adaptive-resize geometry
adaptively resize image with data dependent triangulation
Last edited by a moderator: