+ Reply to Thread
Results 1 to 18 of 18

Thread: App (win32 console app) to convert PSD > PNG

  1. #1
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,200

    Default 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?

    Cheers,
    J

  2. #2

  3. #3
    Member
    Join Date
    May 2006
    Location
    Rotterdam, The Netherlands
    Posts
    61

    Default

    I'd recommend Imagemagick, but I'm sure you have tried it... what went wrong?

  4. #4
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,200

    Default

    Quote Originally Posted by Paul-Jan View Post
    I'd recommend Imagemagick, but I'm sure you have tried it... what went wrong?
    I did convert image.psd image.png ...

    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.

  5. #5
    Moderator
    Join Date
    Jul 2004
    Location
    Birmingham
    Posts
    2,118

    Default

    I know this might seem crazy but why not use Photoshop to do it?

  6. #6
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,200

    Default

    Quote Originally Posted by luggage View Post
    I know this might seem crazy but why not use Photoshop to do it?
    It's possibly me that's crazy ...

    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 .....

  7. #7
    Senior Member
    Join Date
    Nov 2004
    Posts
    2,432

    Default

    Pretty certain you can use photoshop's batch processing to do this.

  8. #8
    Moderator
    Join Date
    Jul 2004
    Location
    Birmingham
    Posts
    2,118

    Default

    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.

  9. #9
    Senior Member
    Join Date
    Jul 2004
    Location
    Phoenix, AZ
    Posts
    498

    Default

    If you want to use ImageMagick:

    convert -flatten image.psd image.png
    Matthew Wegner
    Founder, Flashbang Studios
    Partner, Indie Fund
    Editor, Fun-Motion
    Co-Chair, IGF

  10. #10
    Senior Member
    Join Date
    Feb 2005
    Posts
    2,050

    Default

    Paint shop pro has a very straightforward batch conversion tool.

  11. #11
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,200

    Default

    Quote Originally Posted by Matthew View Post
    If you want to use ImageMagick:

    convert -flatten image.psd image.png
    Sounds perfect. Thanks. Will give this a go in the morning.

    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.

  12. #12

    Default

    XnView can also do the job

    And its free..

  13. #13

    Default

    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.

  14. #14

    Default

    Jamie, did you try to convert using ACDSee?
    choose your files > right click > convert > choose the format et voilą!

  15. #15
    Senior Member
    Join Date
    Feb 2005
    Location
    Slovenia
    Posts
    996

    Default

    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

    http://batch.fcodersoft.com/2png/

  16. #16
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,200

    Default

    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.

  17. #17
    Senior Member
    Join Date
    Jul 2004
    Location
    Sheffield, UK
    Posts
    694

    Default

    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.
    --

  18. #18
    Senior Member
    Join Date
    Apr 2006
    Posts
    1,200

    Default

    Quote Originally Posted by Nikster View Post
    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.
    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).

    Ahhhh. Just read the second part of your post. Will look in to this ...

    Thanks!

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts