top_left top_right
Next Event: Unknown | Forum Rules | QGL Website | Event Registration
iconwatfolderLineopenFolder LANs
iconwatfolderLineopenFolder QGL
iconwatfolderLineopenFolder QGL Forum
Topic: Batch Generating Thumbnails for Images
AGN Admin
Posts: 10251
Location: Brisbane, Queensland
A few people lately have been asking ways to generate thumbnails for images, so I thought I'd share the nice, easy, freeware way that I use.

First of all, you'll need ImageMagick, a neat collection of commandline tools available for a variety of operating systems. You can download the Windows binary here (sourced from the mirror sites, but it is not an "official" mirror). The filename says 'win2k' but I assume it will run on all win32 systems.

This installer contains a bunch of different tools, which you can explore at your own pace.

If you just want to make thumbnails, the easiest way to do it is thus:

1) Install ImageMagick (I install it into c:\utils\imagemagick and will use this path for the examples)
2) Create a batch file called makethumbs.bat with the following contents:
@echo off
@dir /b *.jpg > listing.txt
@dir /b *.jpeg > listing.txt
@dir /b *.gif > listing.txt
@dir /b *.png > listing.txt
@for /f %%a in (listing.txt) do copy %%a TN_%%a
@for %%a in (TN_*.*) do c:\utils\imagemagick\mogrify -geometry x96 %%a
@del listing.txt

3) Put all the images you want into a directory
4) Copy the batch file into the directory
5) Double click the batch file (or, if you are comfortable with DOS, simply put the batch file in the path and type 'makethumbs.bat' from the command line after changing to the directory in which the images are).

This is obviously a very simple method (it will only get the jpg/jpeg etc files listed there, its not recursive, it sucks) but should suffice for most people. I've got a few other toys I use to do it (some PHP scripts) but this way all you need is imageMagick and voila.

Posts: 712
Location: Brisbane, Queensland
a ... batch ... file ??
AGN Admin
Posts: 10255
Location: Brisbane, Queensland
There are prolly heaps of other freeware programmes that are actually better for this, but this is what I use cuz I live on the command line a lot of the time.
Posts: 901
Location: Wynnum, Queensland
thanks a lot, im going to have to make a lot of thumbnails soon and this will come in handy
Posts: 3115
Location: Brisbane, Queensland
photoshop duzeeet the best (ofcourse).
Posts: 5373
Location: Brisbane, Queensland
it takes less time to do say 10imgs this whay then it would with photoshop
Posts: 344
Location: Brisbane, Queensland
yeah, but trog, we want it realtime on the ausgamers hosting service

AGN Admin
Posts: 10257
Location: Brisbane, Queensland
Yeh, that sounds like a valuable usage of server CPU time
Posts: 8
Location: Queensland

Course we'd appreciate it greatly :D
Posts: 5282
Location: Queensland
And for the lazy there is ACDsee. Its way better than anything but its not free... Thats the only problem. There are ways around that of course (like buying it)
Posts: 2529
Location: Brisbane, Queensland
[Q] last time I looked (which was ages ago) there was a free version of ACDSee, it was kinda lacking in features, not sure if it had any thumbnail thing. Or maybe it wasn't free, maybe I was just using the shareware version or something. I remember there being an ACDSee32 and an ACDSee, the one with the 32 was free/shareware and the other one you had to buy....or some such crap
Posts: 5525
Location: Canada
Care to describe a quick and easy way to do it in photoshop Streckles?

command line and batch files are silly :/
Posts: 2532
Location: Brisbane, Queensland
dan: file -> automate -> picture gallery
Not a new post since your last visit.
New Post Since your last visit
Back To Forum
Advertise with Us | Privacy Policy | Contact Us
© Copyright 2001-2024 AusGamers Pty Ltd. ACN 093 772 242.
Hosted by Mammoth Networks - Australian VPS Hosting
Web development by Mammoth Media.