|
#1
| |||
| |||
| 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 |
|
#2
| |||
| |||
| '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. |
|
#3
| ||||
| ||||
| 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. ![]() |
|
#4
| ||||
| ||||
| 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 |
|
#5
| ||||
| ||||
| 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
__________________ |
|
#6
| |||
| |||
| Quote:
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. |
|
#7
| ||||
| ||||
| 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 |
|
#8
| ||||
| ||||
| 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 / |
![]() |
| Thread Tools | |
|
|
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 |