Resizing alot of images - made easier?

deejayhypno

Registered
hello all, once again, the answer seems to avade me so who better to turn to than the masters :)

- just a quick one..

I often have alot of images to resize (scale down to 640x480) so i can upload them, however im doin it one at a time - which is really tedious - im using Graphic Converter - but is there anything in OSX that can do this job, it seems so simple - just select all and resize to 640x480, im missing something?

your help and advice greatly appreciated as always

J
 
'is there anything in OSX that can do this job [Resizing alot of images - made easier?], it seems so simple - just select all and resize to 640x480, im missing something?' - yes, use 'GraphicConverter'.

There are at least two ways to batch process image files with 'GraphicConverter'.
01. Create an AppleScript drop applet, via 'Script Editor' (in the '/Applications/AppleScript/' folder), and have it control 'GraphicConverter' to 'scale' the dragged on image(s).

02. Create a 'Batch' process - see page 37 of the 'GC_Users_Guide.pdf' [the 'GraphicConverter' Manual] section 3.3.3.27 'Batches in the Browser'.
To create a 'scale' batch should take no more than one minute.
Once (the batch process) created, and to process the desired image files:
02.01. Place all the files to scaled into a folder.
02.02. Drag the folder onto 'GraphicConverter'.
02.03. When 'GraphicConverter's 'Browser' window appears, select the 'Edit, Select All' menu item ('Command A').
02.04. Select your batch process from the 'Batch' popup menu.
02.05. Click on the 'Go' button.

Depending on how the Batch process was created, either the image files will be modified; or, a new folder will be created within the image files folder, with scaled copies of the original image files.
 
yeah what barhar said about Apple Scripts works. Havent used the GC Batching, myself though.

Writing Apple Scrits can be a bit of a pain if you havent done it before, but if a nuff nuff like me nutted it out then it cant be that hard.

Its kinda cool when your Apple does the work for you without being told to do it every time, pity it took me so many hours to wirte my image resizing scripts it the first place. :)
 
use automator. it's a new program since 10.4 that makes it easy to make apple scripts. look in your applications folder.
 
I use an AppleScript to resize multiple images. Drag one or a hundred images to the icon;


-- save in Script Editor as Application
-- drag files to its icon in Finder

on open some_items
repeat with this_item in some_items
try
rescale_and_save(this_item)
end try
end repeat
end open


to rescale_and_save(this_item)
tell application "Image Events"
launch
set the target_width to 480
-- open the image file
set this_image to open this_item

set typ to this_image's file type

copy dimensions of this_image to {current_width, current_height}
if current_width is greater than current_height then
scale this_image to size target_width
else
-- figure out new height
-- y2 = (y1 * x2) / x1
set the new_height to (current_height * target_width) / current_width
scale this_image to size new_height
end if

tell application "Finder" to set new_item to ¬
(container of this_item as string) & "scaled." & (name of this_item)
save this_image in new_item as typ

end tell
end rescale_and_save
 
deejayhypno said:
I often have alot of images to resize (scale down to 640x480) so i can upload them, however im doin it one at a time - which is really tedious J

This one will do what you ask, but you need to use command line (i.e. Term.app).

Fetch ImageMagick from somewhere. I have Fink version, but http://mac.softpedia.com/get/DTP-Prepress/ImageMagick.shtml seems to have it also. ImageMagick has set of commands (or actually a set of functions, since it is a library which manipulates images), one of which is convert.

Type

$ convert IMG_0008.JPG -resize 640x480 smaller.jpg

convert can read several files at once, but it can output only one (for example to generate a GIF animation). So you need some shell programming, like

$ for i in *.jpg; do
convert $i -resize 640x480 `basename .jpg`_new.jpg
done

BTW. I normally use ImageMagick from X11, since its viewer "display" suites me better than preview and at least onn Fink version "display" works on X11.
 
Bob I just tried that script, and you're a freakin' genius. I take my hat off to you.
 
There is a similar feature in GraphicConverter (paid version).
 
Hi. Just Google for an Apple app. called 'iResize' 2.3.5.app. It is a wonder and will batch resize and rename, etc.......So much easier than the other advise. Regards. Dean M
 
Back
Top