commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
There are 4 alternatives - vote for the best!
Convert all jpegs in the current directory into ~1024*768 pixels and ~ 150 KBytes jpegs
To ignore aspect ratio, run:
for file in *; do convert $file -resize 800x600! resized-$file; done
and all images will be exactly 800x600.
Use your shell of choice.. This was done in BASH.
If you can do better, submit your command here.
You must be signed in to comment.