Jump to content


Photo
- - - - -

Script to generate thumbs


  • Please log in to reply
1 reply to this topic

#1 Usher

Usher

    New Member

  • Members
  • Pip
  • 24 posts

  • United States

Posted 13 April 2008 - 05:18 PM

Hey guys,
Thought I'd throw something back at the community. I found that the 'rebuild thumbnails' was locking up over 20 at a time, so I created a script that could be used on a per-folder basis with ImageMagick.
You must have ImageMagick installed to run this (it's a bash script)
It has VERY MINIMAL error protection, so test it first
Basic steps to use are, put the script in your path or in the folder you want to use it in, then:
CODE
thumb.txt jpg jpg _small 150x100

basically, scriptname <input extension> <output extension> <thumb denoter> <resolution>
It has worked for me to create the many thumbs i needed... Enjoy!
It does handle spaces in file names nicely.....but not much else

~Usher

Attached Files


Edited by Usher, 13 April 2008 - 05:37 PM.

-------------------
Everyone told me I was daft to build a castle on a swamp! So I did.
~Usher

#2 usr.c

usr.c

    Boss, my code's compiling (xkcd)

  • Admins
  • 10,440 posts
  • Gender:Male
  • Interests:Software
    Soccer
    Photography
    RC cars
    Electronics

  • Nothing Selected

Posted 16 April 2008 - 08:35 AM

Thanks!


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users