App (win32 console app) to convert PSD > PNG
Converting 32bit PSD > PNG (or even TGA).
I've tried I.M. but to no avial (is just converts individual layers), is there anything else I might try?
I'd recommend Imagemagick, but I'm sure you have tried it... what went wrong?
I did convert image.psd image.png ...
Originally Posted by Paul-Jan
I got about 25 output files! I think one per layer in the .PSD.
I just wanted the composite of all the layers (with layer styles applied etc) to go as a single 32bit layer in to a PNG.
Probably better to develop my own mini app to do this.
I know this might seem crazy but why not use Photoshop to do it?
It's possibly me that's crazy ...
Originally Posted by luggage
It's just that it takes ages to do, I have to ctrl-shift-S, then navigate to a different folder, then open the pull down menu for file type, then scroll this down so I can select PNG, then save.
I just seem to end up with a messy folder structure with stuff (files) all over the place. So I prefer things to be more automated and mechanical, if that makes sense?
Of course, it could take me hours to set up some ideal system I'm happy with, and the time saved may not justify this .....
Pretty certain you can use photoshop's batch processing to do this.
You can record an action to do this and then use the batch processing as nexic suggests to perform it on a lot of files. There's quite a few tutorials and things flying around the web if you do a quick search.
If you want to use ImageMagick:
convert -flatten image.psd image.png
Paint shop pro has a very straightforward batch conversion tool.
Sounds perfect. Thanks. Will give this a go in the morning.
Originally Posted by Matthew
If not, looks like I'm code my own tool (with help of the FreeImage lib).
Just really want a setup where I can quickly edit and save a .PSD. Then run a .BAT file to convert the .PSD's to .PNG's, and then launch my game, all at the click of a mouse button.
XnView can also do the job
And its free..
When processing lots of images, I record a new photoshop action, save it. Then run the action as a batch over the folder with the images. nice and quick, works well.
Jamie, did you try to convert using ACDSee?
choose your files > right click > convert > choose the format et voilą!
I used 2PNG to convert TGA with alpha to PNG with alpha (to get something to flash)...nothing else I tried did that. 2PNG is a console app. It is not free. It says it supports PSD
Thanks for all the suggestions guys, loads of possible solutions there for me to try.
I'm thinking if the imagemajick option doesn't work for me, I will code up my own app (better than forking out £125 for 2PNG! - which I'm sure is great - and does a hell of a lot more than I need).
Will let you know how I get on.
Thanks once again.
What do you mean by "layer styles" ? are you talking about things like blending options and the like ? I'd have thought you'd be hard pushed to find some external utility that handles that (might be wrong) being as it's a list of parameters that's composed within photoshop itself (unless it does actually store post effects image as part of the psd, which I doubt) anyone know about this as I'm interested always wanting to replicate the stroke effect in my stuff.
Re: ImageMagick, have you enabled the backward compatibility flag in photoshop ? this apparently stores a composite as part of the psd for older versions of photoshop and maybe ImageMagick works on the layers if it can't find a composite within the psd.
Last edited by Nikster; 02-28-2007 at 02:54 AM.
Yes, I did mean blending options. I think photoshop does indeed store the post effects composite image in the .PSD (I remember developing code to uncompress a .PSD, and it was quite straightforward - but was working with .PSD's saved in Photoshop 7.0).
Originally Posted by Nikster
Ahhhh. Just read the second part of your post. Will look in to this ...