Automator Action to Save as JPG - ehMac.ca
Facebook
Twitter
YouTube
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old Dec 8th, 2009, 01:53 AM   #1
Full Citizen
 
whodisbe's Avatar
 
Join Date: Jan 2009
Location: Toronto
Posts: 79
Automator Action to Save as JPG

So, I'm trying to wrap up a website I developed, and I'm left with a folder of images from the previous developers which I need to generate thumbnails of to accomodate some of the new features.

Long story short, when I'm taking the original images from the website and running through a photoshop action to resize them Photoshop gives me an error saying "could not complete your request because an unknown or invalid JPEG marker type is found".

Oddly, I can open the files that are corrupt in Preview, Save As the file, and then it will open fine in Photoshop to run through the resizing action I created.

So - I'd like to automate this because 5000 photos is a lot to go through manually. I tried making an Automator action to handle the "save as" task in preview, but I suck at it.

Anyone have any tips, or direction they can give me on this?

I need an action that will take a folder of photos -> open in preview -> Save as (jpeg) -> close the photo -> open the next photo... repeat until all photos in the folder are complete.

Any help would be appreciated. Thanks!
__________________
~ you're just mad cuz I tell it how it is and you tell it how it might be ~
whodisbe is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old Dec 8th, 2009, 10:38 PM   #2
Honourable Citizen
 
chas_m's Avatar
 
Join Date: Dec 2007
Location: Victoria BC
Posts: 11,796
Send a message via AIM to chas_m
I suck at Automaker too, I'm embarrassed to admit -- it's something I should learn more about.

However, just because I don't have an Automator answer for you doesn't mean I don't have AN answer, and that answer is: Graphic Converter.

It's designed to do batch conversions exactly like what you're looking for, and seems to handle "corrupt" or malformed JPEGs better than Photoshop.

It's free to try, so you have nothing to lose (and it's cheap to own, btw).
chas_m is offline   Reply With Quote
Old Dec 8th, 2009, 10:50 PM   #3
Honourable Citizen
 
Macified's Avatar
 
Join Date: Sep 2003
Location: Park City, Markham, Haliburton
Posts: 4,417
Send a message via AIM to Macified
I have an AppleScript based applet that does nothing but resize images. It doesn't open preview or anything like that. You just drag an image over the applet and it does it's thing. A request pops up looking for the length of the longest file side (in pixels). Finalizes with a snappy little dialog box. Works for folders of images as well but all the images will be resized to meet the longest side criteria.

PM me if you think this will work and I'll email it to you. I downloaded it from the net; it's called Image Resizer.
__________________
“Maybe some day somebody will call me "Sir" without adding "You're making a scene"!!”
-Homer Simpson
Macified is offline   Reply With Quote
Old Dec 8th, 2009, 10:57 PM   #4
Honourable Citizen
 
Join Date: Nov 2006
Posts: 12,112
Quote:
Originally Posted by chas_m View Post
I suck at Automaker too, I'm embarrassed to admit -- it's something I should learn more about.

However, just because I don't have an Automator answer for you doesn't mean I don't have AN answer, and that answer is: Graphic Converter.

It's designed to do batch conversions exactly like what you're looking for, and seems to handle "corrupt" or malformed JPEGs better than Photoshop.

It's free to try, so you have nothing to lose (and it's cheap to own, btw).
My version of GC is registered for so I have no way of testing, however I believe that you have to be registered in order to do batch conversions.

Still I use GC to make index prints and to rename photos as well as the occasional kind or size conversion, and have found it to be worth every penny.

As to Automator I have tried to figure it out on numerous occasions and have given up on it altogether. For me Automator lacks the intuitiveness that attracted me to the Mac platform so many years ago.
__________________
I retain all rights to photo-images I have posted on ehMac. They were posted that other members of the community could enjoy them. They may not be used or sold in any other way without my written consent.

It's Un-Canadian to oppose a warming trend.
eMacMan is offline   Reply With Quote
Old Dec 9th, 2009, 08:42 AM   #5
kps
Tritium Glow
 
kps's Avatar
 
Join Date: May 2003
Location: GTA & Beyond
Posts: 6,798
"Scale Images" are available in Automator.

Work on a copy of the folder or have your Automator Action do it at startup, just in case things go wrong.

The image below shows both actions, copy items and scale. (Forget the create thumbnail icon action)
Click the image for a larger size.
Attached Images
File Type: jpg Picture 2.jpg (146.3 KB, 5 views)
kps is offline   Reply With Quote
Reply

Tags
automator, photo, photoshop

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help save the Rent Bank Sonal Everything Else, eh! 3 Apr 30th, 2008 12:05 PM
Safari 2.0.4 doesn't save the whole webpage!?! krs Mac, iPhone, iPad and iPod Help & Troubleshooting 0 Feb 3rd, 2007 11:47 PM
How do I save directly into asubfolder on OS 10.3? krs Mac, iPhone, iPad and iPod Help & Troubleshooting 4 Oct 17th, 2005 11:03 AM
Can I not save to Zip disk directly on OS X? krs Mac, iPhone, iPad and iPod Help & Troubleshooting 2 Mar 28th, 2005 06:17 PM


All times are GMT -4. The time now is 09:11 AM.



Copyright © 1999 - 2012, ehMac.ca All rights reserved. ehMac is not affiliated with Apple Inc. Mac, iPod, iTunes, iPhone, Apple TV are trademarks of Apple Inc. Content Relevant URLs by vBSEO 3.6.0 RC 2

Tribe.ca: Urban living in Toronto!