Entry tags:
./sizes *.jpg
I got this working pretty quickly and it involved clevering out some arcana, including how to do math with the output of your pipes(?!). Also, if will help me reorganize the wallpaper collection. Exif is a neat tool if you don't have it.
Sample output:
I'm sure none of you care much but I'm quite pleased I was able to figure this out in only a couple tries**
ETA: fixes, works well though there is still some error junk in the output, even with the 2>&1 > dev/null incantation.
**The hours wasted fighting with gem, ImageMagick, macports (sudo mv /opt/not.opt), and make last week will not be spoken of. Take one point from ruby and put it into bash's bucket.
#!/bin/bash
## print images files and their pixel sizes, for wallpaper
## might take target from first argument
## requires exif package, available in apt
for image in *.jpg; ##$1;
do
while exif --tag PixelXDimension $image 2>&1 > /dev/null ;
do
echo -n $image " "
echo -n $((`exif --tag PixelXDimension $image | grep Value | tail -1 | awk '{print $2}'`/2)) x" "
echo -n $((`exif --tag PixelYDimension $image | grep Value | tail -1 | awk '{print $2}'`/2)) y
echo;
break;
done
done
Sample output:
400177main_MilkyWayCenterComp3000.jpg 1500 x 1200 y
I'm sure none of you care much but I'm quite pleased I was able to figure this out in only a couple tries**
ETA: fixes, works well though there is still some error junk in the output, even with the 2>&1 > dev/null incantation.
**The hours wasted fighting with gem, ImageMagick, macports (sudo mv /opt/not.opt), and make last week will not be spoken of. Take one point from ruby and put it into bash's bucket.

no subject
Saurik's stuff works for me with some mods
appropriately enough today *is* Bleach Day
Re: appropriately enough today *is* Bleach Day
I snagged a big ol torrent ball of a Bleach music from when I was still keeping up with the show. It's all of the score and weird pop fight music plus the singles with all of the opening and closing tracks, and some other random bits, including bits of the show.
It tends to overpower my other soundtracks and anime music in playlists by shear volume and that there are three version of each track (or so).
Really did mean to reply to you when you commented, had it gmail the whole time staring at me...
How are your dave and your kitties?