View Single Post
Old 07-24-2013, 10:46 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,333
Little Bash Script for resizing your mechbunny thumbs

Thought I would share, I had the default size thumbs enabled and then changed the size and needed to rebuilt but no function exists built into the admin to resize all images.

(note this is only for images and galleries)

Code:
#!/bin/bash

# batch resize mechbunny thumbs

for img in */*.jpg; do convert -adaptive-resize 160x200^ -gravity Center -extent 160x200 "$img" "${img%/*}/thumbs/${img##*/}"; done
to be run inside /media/galleries folder.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote