December 21st, 2007 @ 11:01 am

Favorite Pics

Tin Foil Soldier ยป Favorite Pics

I posted some of my pictures from Yellowstone / Grand Canyon / Sedona on a “page” on this site.

I of course submitted much higher res versions to the printers.

I generated the thumbnails with phpThumb cause I was tired of resizing and converting images already when I decided I wanted thumbnails. I used a bash for loop to get the phpThumb script to do all the resizing

for i in $( ls prints ); do
wget http://tinfoilsoldier.com/phpThumb/phpThumb.php?src=/blog/wp-content/prints/"$i"&w=200" -O "$i"_thumb.jpg;
done

I was going to do live resizing, but the server is slow and I figured, even with it on a page it would slow tinfoil down a lot.

I moved the phpThumb scripts because it allows for off site image resizing, which seems bad.

Comments are closed.