script-fu: find all images and rename them, attaching resolution information to filename
dont ask
[sourcecode lang=“bash”] find . -name \*image\* -exec sh -vc ’ cp {} `echo {} |xargs basename| sed “s@\(.*\)\.jpg\|png\|bmp@\1@”`__`identify -verbose {} | grep Geometry | sed -e “s@^.*Geometry: \([0-9]*\)\([x]*\)\([0-9]*\).*@__\1_\3@”`.`echo {} | sed “s@\(.*\)\.\(jpg\|png\|bmp\)@\2@”` ’ \; [/sourcecode]