batch convert png's to jpeg's - MacRumors Forums
Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Mac Basics and Help

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 11, 2008, 08:26 PM   #1
mark2288
macrumors regular
 
Join Date: Jan 2006
batch convert png's to jpeg's

I have a bunch of pngs that I'd like to convert to jpeg's as easily as possible. I have Adobe CS3 if that app is capable of doing it.

Thanks.
__________________
15.4" MBP 2 GHz Core Duo, 2 GB RAM, 320 GB HD; 32 GB iPod Touch, Samsung 20" 206BW, WD 500GB MyBook Pro, EyeTV Hybrid
mark2288 is offline   0 Reply With Quote
Old Apr 11, 2008, 09:51 PM   #2
Latro
macrumors member
 
Join Date: Mar 2008
Mark,

Do you have Pixelmator? If not, you should. Then you can use automator with these steps:

1. Find Finder Items - Do a search to select all the .png images you want to transfer to jpeg
2. Get Selected Finder Items
3. Copy Finder Items - This will make sure you keep an original copy of all your .png images should anything go wrong.
4. Change Type of Images (This step Requires Pixelmator - I believe there is a free trial you can download but it is well worth the $).

Run the automator process and all your pictures are converted. I just tried this out and it converted about 40 png files to jpeg in 3 seconds.

For more hints and tips. Head over to www.maciverse.com!
__________________
A Mac Help Website
Latro is offline   0 Reply With Quote
Old Apr 11, 2008, 10:05 PM   #3
richard.mac
macrumors 603
 
richard.mac's Avatar
 
Join Date: Feb 2007
Location: 51.50024, -0.12662
Send a message via Skype™ to richard.mac
^ yep i was just about to suggest that! Automator is great for these things. Automator will ask you if you would like to add a "Copy Finder items" action after you add the "Change type of images" action so you dont have to add it. when you have the workflow setup in Automator just press the play button if you only plan on using it once and not saving it.

also Latro you dont need Pixelmator for the change type of images action. it uses Preview.
__________________
If you can't innovate, you just imitate, but it's never quite as good as the original
Hackintosh - Core i5 4670K, GA-Z87X-UD4, 7870XT, 16GB RAM, 128GB SDD | MacBook Air 13" 2013 | iPhone 5 16GB JB

Last edited by richard.mac; Apr 11, 2008 at 10:10 PM.
richard.mac is offline   0 Reply With Quote
Old Apr 11, 2008, 10:23 PM   #4
mark2288
Thread Starter
macrumors regular
 
Join Date: Jan 2006
thanks for the help. i went ahead and used Latros' flow but used Preview instead since i hate installing new things! thanks again!
__________________
15.4" MBP 2 GHz Core Duo, 2 GB RAM, 320 GB HD; 32 GB iPod Touch, Samsung 20" 206BW, WD 500GB MyBook Pro, EyeTV Hybrid
mark2288 is offline   0 Reply With Quote
Old Jun 27, 2008, 05:46 PM   #5
BarnCat
macrumors newbie
 
Join Date: Jun 2008
Location: In the western mountains.
Ready to pull hair out

Okay - I am so glad I found you guys. I am using iphoto for image storage/organization. But I edit in photoshop, using a nice little array of actions and tricks. I really dislike jpegs, and would love to store everything as png. After reading this and some other things, I put together a little workflow that downloads from the camera, changes to PNG, imports into iphoto. Worked like a charm except for two things: A) all of the camera meta data was lost, and I end up with only the date and time of my download. B) when things are done this way, iphoto does recognize duplicates. I guess that should be obvious, since all the stuff in iPhoto is .jpeg, so the names are not the same (duh, me).

But what about the meta data? Do any of you know why this would happen? PNG can carry textual meta data. I'd ask my kid, Mr. Hey-let's-write-a-script-for-that, but he's gone to Argentina for two years. So I'm looking for a mensch who can teach me a thing or two.
BarnCat is offline   0 Reply With Quote
Old Dec 9, 2009, 02:06 PM   #6
MarcusSparkus
macrumors newbie
 
Join Date: Dec 2008
png or gif to jpeg?? Why are you making it so freaking complicated??

Don't listen to them and don't spend a penny you already spent a ton of dough on the best operating system on the planet. Open it with Preview, file, save as jpeg or whatever format you want, duh.
MarcusSparkus is offline   0 Reply With Quote
Old Dec 9, 2009, 02:09 PM   #7
GGJstudios
macrumors Westmere
 
Join Date: May 2008
Quote:
Originally Posted by MarcusSparkus View Post
Don't listen to them and don't spend a penny you already spent a ton of dough on the best operating system on the planet. Open it with Preview, file, save as jpeg or whatever format you want, duh.
First, you just responded to a thread that's more than a year old.

Second, it would help if you took the time to read the thread title and the OP's post. They're looking for a batch conversion for a bunch of pics. Doing them one by one is extremely inefficient.

Last edited by GGJstudios; Dec 9, 2009 at 02:27 PM.
GGJstudios is offline   0 Reply With Quote
Old Dec 9, 2009, 02:26 PM   #8
plinden
macrumors 68040
 
plinden's Avatar
 
Join Date: Apr 2004
Wow - old thread.

For those who come to this later, open Terminal, cd to the directory containing your JPGs and type:
Code:
mkdir pngs; sips -s format png *.* --out pngs
plinden is offline   0 Reply With Quote
Old Dec 9, 2009, 02:36 PM   #9
quantum003
macrumors 6502a
 
quantum003's Avatar
 
Join Date: Apr 2009
Location: Superposition
If you have Adobe Photoshop CS3 you can choose "Automate" --> Web Photo Gallery... it will take a folder full of PNGs or any other image file and dump a bunch of resized jpegs into a new folder for you.
__________________
busratio=22
quantum003 is offline   0 Reply With Quote
Old Feb 6, 2010, 09:23 AM   #10
jazzkids
macrumors member
 
Join Date: Feb 2004
Location: Providence, RI
sry to open this up again, but this really helped me and is easy:

http://www.jasonkenison.com/blog.html?id=31

uses automator and is (2) steps
jazzkids is offline   0 Reply With Quote
Old Nov 18, 2010, 03:21 PM   #11
rrandyy
macrumors 6502
 
Join Date: Jan 2009
I realize this is an old thread, but I found it very useful and want to update it for others who search for it. If you want to convert png images to jpeg, you should use the following:

Code:
mkdir jpegs; sips -s format jpeg *.* --out jpgs
If the png images were generated using screen capture, you can set the default osx screen capture format to jpeg, rather than png using this command:

Code:
defaults write com.apple.screencapture type jpg
Then restart your computer for the change to take effect. To revert back to the default png format, use "defaults write com.apple.screencapture type png".

Quote:
Originally Posted by plinden View Post
Wow - old thread.

For those who come to this later, open Terminal, cd to the directory containing your JPGs and type:
Code:
mkdir pngs; sips -s format png *.* --out pngs
rrandyy is offline   0 Reply With Quote
Old Jan 9, 2012, 01:24 AM   #12
matrix07
macrumors 65816
 
Join Date: Jun 2010
Quote:
Originally Posted by Latro View Post
Mark,

Do you have Pixelmator? If not, you should. Then you can use automator with these steps:

1. Find Finder Items - Do a search to select all the .png images you want to transfer to jpeg
2. Get Selected Finder Items
3. Copy Finder Items - This will make sure you keep an original copy of all your .png images should anything go wrong.
4. Change Type of Images (This step Requires Pixelmator - I believe there is a free trial you can download but it is well worth the $).

Run the automator process and all your pictures are converted. I just tried this out and it converted about 40 png files to jpeg in 3 seconds.

For more hints and tips. Head over to www.maciverse.com!
Sorry to revive old thread but this is such a good tip. The problem though is it doesn't help newbie (like me) much so I recap it a bit.
1. Open Automator. Select Application and choose.
Now you choose the task from the left pane and drag it to action pane.
2. drag Get Specified Finder Items. Drag and drop all your files you want to convert.
3. drag Copy Finder Items. Create another folder for the converted pictures to go to.
4. drag Change Type of Images (Preview, you don't need Pixelmator) change format to JPEG, then Run.
5. Have a nice sip of beer and.. voila!
matrix07 is offline   0 Reply With Quote
Old Jan 30, 2012, 06:49 AM   #13
henryseiden
macrumors newbie
 
Join Date: Aug 2009
batch convert files in a hierarchy from png to jpg

Quote:
Originally Posted by matrix07 View Post
Sorry to revive old thread but this is such a good tip. The problem though is it doesn't help newbie (like me) much so I recap it a bit.
1. Open Automator. Select Application and choose.
Now you choose the task from the left pane and drag it to action pane.
2. drag Get Specified Finder Items. Drag and drop all your files you want to convert.
3. drag Copy Finder Items. Create another folder for the converted pictures to go to.
4. drag Change Type of Images (Preview, you don't need Pixelmator) change format to JPEG, then Run.
5. Have a nice sip of beer and.. voila!
The only things I would have to add is that (in my case at least, where I am converting many files in a specific folder heirarchy) I manually copy the entire grouping to a flash drive and convert all the files copied on the Flash drive with the Automator step Copy Finder items. I suppose that the Copy step could be used but why?

Also note that when Finding the items the select by extension method doesn't work for me. I had to use by name, ends with...

I found this much easier to make as a template and/or run on a one time basis that dealing with Terminal. This could also be done there though.
__________________
15" MBP(6,1) late 2010 iMac 2013 MacPro (3,1) 2009 MacMini Server(6,1) 2011 AEBS 802.11n WLAN
henryseiden is offline   0 Reply With Quote
Old Feb 4, 2012, 05:46 PM   #14
nicolanicola
macrumors member
 
Join Date: Jan 2009
I'm trying to do this. I have many files in different folders that I want to be changed to jpgs. They all have the same name so I can't save them in one folder, I want them to be saved in their source folder i.e. where they came from. How is the best way to do this? Thanks guys.
__________________
15.2" Aluminum MacBook Pro, 2.4 GHz, I5, 8GB RAM, OS X Mavericks | iPhone 5 64GB

More about me at my web design website
nicolanicola is offline   0 Reply With Quote
Old Apr 7, 2012, 03:02 AM   #15
c00lryguy
macrumors newbie
 
Join Date: Apr 2012
Here's what I did:

1. Open Automator.
2. Create a new "Service".
3. To the right of "Services receives selected", select "images files" in the drop-down.
4. Select "Finder" in the drop-down to the right of the previous drop-down.
5. Search for "Change Type" in the search bar.
6. Add the action provided by Pixelmator. I have not tried the action provided by Preview, although I'm sure it works the same. You may be prompted to add a task to copy the image, but Pixelmator's action already does this, so select "Don't Add" if asked.
7. Change "To Type:" to "PNG" in the action's settings.
8. Save the service as "Convert to PNG".

Now, when I select some JPG files in Finder and right click, I see will see my entry in my context menu. =D
c00lryguy is offline   1 Reply With Quote
Old Apr 13, 2012, 12:16 AM   #16
matrix07
macrumors 65816
 
Join Date: Jun 2010
Quote:
Originally Posted by nicolanicola View Post
I'm trying to do this. I have many files in different folders that I want to be changed to jpgs. They all have the same name so I can't save them in one folder, I want them to be saved in their source folder i.e. where they came from. How is the best way to do this? Thanks guys.
I think the best way is to skip step 3 on my guide.
matrix07 is offline   0 Reply With Quote
Old Jan 11, 2013, 09:22 PM   #17
jazbek
macrumors newbie
 
Join Date: Nov 2010
Quote:
Originally Posted by rrandyy View Post
I realize this is an old thread, but I found it very useful and want to update it for others who search for it. If you want to convert png images to jpeg, you should use the following:

Code:
mkdir jpegs; sips -s format jpeg *.* --out jpgs
This should be

Code:
mkdir jpegs; sips -s format jpeg *.* --out jpegs
jazbek is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Mac Basics and Help

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
batch converting jpeg to pdf jpblevins iMac 5 Nov 3, 2013 06:05 PM
How to Extract Photobook from Iphoto '11 convert to JPEG nahzd Mac Applications and Mac App Store 0 Jul 15, 2013 06:59 AM
Batch converting pdf to jpeg djsound Design and Graphics 6 Jul 1, 2013 01:58 PM
Batch convert to PDF...how? jbrown Mac Basics and Help 2 Nov 26, 2012 04:02 AM
Convert RAW to JPEG on MacBook Pro Sadie M Digital Photography 13 Jul 10, 2012 09:40 PM

Forum Jump

All times are GMT -5. The time now is 09:23 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC