顯示具有 resize 標籤的文章。 顯示所有文章
顯示具有 resize 標籤的文章。 顯示所有文章

2008年11月18日 星期二

Add image resizing and rotating to Gnome on Ubuntu

1. the package name is nautilus-image-converter, nautilus extension to mass resize or rotate images

sudo apt-get install nautilus-image-converter

2. logout and login again, or reboot, you will find right-click pop menu on image has the features we need

2008年10月6日 星期一

Batch image resize script on Ubuntu

- be able to specify resolution of image
- create a folder to put resized images in


#!/bin/bash

printf "Batch Image Resize..\n"
read -p "width: " width
read -p "height:" height

[ -d resize/ ] || mkdir resize

ls -1 *.[jJ][pP][gG] | while read file
do
convert -scale ${width}x${height} "$file" resize/"$file"
[ -f "$file" ] && printf "$file\tOK\n"
done