image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old March 23rd, 2006, 06:15 AM
Registered User
 
Join Date: Jan 2006
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
deejayhypno is on a distinguished road
Resizing alot of images - made easier?

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
__________________
Powerbook G4 1.67 / 80GB HD / Superdrive / 1GB RAM / ATI Mobility Radeon 128 MB / OSX 10.4.5
Reply With Quote
  #2  
Old March 23rd, 2006, 07:22 AM
Registered User
 
Join Date: May 2005
Posts: 1,339
Thanks: 0
Thanked 1 Time in 1 Post
barhar is on a distinguished road
'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.

Last edited by barhar; March 23rd, 2006 at 11:23 AM.
Reply With Quote
  #3  
Old March 23rd, 2006, 11:58 AM
modular's Avatar
Registered Loser
 
Join Date: Oct 2004
Location: Melbourne, Australia
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
modular is on a distinguished road
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.
Reply With Quote
  #4  
Old March 23rd, 2006, 12:08 PM
Lt Major Burns's Avatar
"Dicky" Charlteston-Burns
 
Join Date: Jan 2005
Location: Manchester
Posts: 3,332
Thanks: 0
Thanked 1 Time in 1 Post
Lt Major Burns will become famous soon enough
use automator. it's a new program since 10.4 that makes it easy to make apple scripts. look in your applications folder.
__________________
Dual 1.8GHz G5 2GB, 1TB, Radeon 9600XT 128MB, 10.5
20" Apple Cinema Display + Dell 2005FPW 20" dual-head
iBook G3 700MHz
640MB, 40GB, Rage128 16MB, 10.4, dying battery
Reply With Quote
  #5  
Old March 23rd, 2006, 12:55 PM
bobw's Avatar
The Late: SuperMacMod
 
Join Date: Mar 2001
Location: Phila,PA
Posts: 8,835
Thanks: 0
Thanked 5 Times in 1 Post
bobw has a spectacular aura aboutbobw has a spectacular aura about
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
__________________

Reply With Quote
  #6  
Old March 23rd, 2006, 01:44 PM
Registered User
 
Join Date: Mar 2005
Posts: 209
Thanks: 0
Thanked 2 Times in 2 Posts
artov is on a distinguished road
Quote:
Originally Posted by deejayhypno
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-Pre...geMagick.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.
Reply With Quote
  #7  
Old August 9th, 2007, 02:39 AM
Mat's Avatar
Mat Mat is offline
iSmell
 
Join Date: May 2003
Location: A Land Down Under
Posts: 463
Thanks: 0
Thanked 0 Times in 0 Posts
Mat is on a distinguished road
Bob I just tried that script, and you're a freakin' genius. I take my hat off to you.
__________________
Truth hurts. Maybe not as much as jumping on a bicycle with a seat missing, but it hurts.
- Drebin, Naked Gun 2 1/2
Reply With Quote
  #8  
Old August 9th, 2007, 05:20 AM
FlashMac's Avatar
Registered User
 
Join Date: Dec 2004
Posts: 136
Thanks: 0
Thanked 0 Times in 0 Posts
FlashMac is on a distinguished road
Sadly, Bobw is no longer with us. Check the Cafe for details. But yes, it is a fine script.
__________________
Mac Pro Dual 2.66Ghz 2Gb/250Gb / MacBook Dual 1.42 1Gb/80GB / AGP Graphics G4 500Mhz 1Gb/40Gb / WD-MyBook /
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
we can breath easier about intel macs sinclair_tm Apple News, Rumors & Discussion 28 January 8th, 2006 10:48 PM
Comic: macs are easier than windows Stridder44 Apple News, Rumors & Discussion 5 March 18th, 2004 09:02 AM
and you thought 130 was alot for jaguar kanecorp Apple News, Rumors & Discussion 7 August 5th, 2002 09:27 AM
Anyone know alot about firewalls? djeans Mac OS X System & Mac Software 8 December 2nd, 2001 02:13 AM
Drop Drawers X 1.5 is a LOT easier to use! strobe Mac OS X System & Mac Software 3 January 2nd, 2001 10:52 AM


All times are GMT -5. The time now is 02:24 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.