Page 1 of 1

Converting PSD to PNG problem

Posted: 2010-11-23T21:32:35-07:00
by cdcr1985
Now a days I'm developing a app to make User panel in Windows Vista and Seven, but I have problem at image converting process.

I made a kind of template to edit in photoshop, but when I convert, cut, and apply windows doesn't recognize it transparency.
Example:
This is my template
http://k-rlitos.com/mic/tmp/imagemagick/UserPanel.psd

With Convert:
http://k-rlitos.com/mic/tmp/imagemagick/userpanel-0.png

and this is my problem:
http://k-rlitos.com/mic/tmp/imagemagick/problem.png

so, there are a program to made this, is not free, but this program "Auto fixes alpha-channels from Photoshop" and I can get a functionally png:
http://k-rlitos.com/mic/tmp/imagemagick ... osited.png
and works:
http://k-rlitos.com/mic/tmp/imagemagick/noproblem.png

so, any ideas?

I tried with convert UserPanel.psd -colorspace RGB -alpha on -intent perceptual userpanel.png and a lot of other commands, please help.

Re: Converting PSD to PNG problem

Posted: 2010-11-24T10:32:36-07:00
by fmw42
If your psd contains a cmyk image, then

convert -colorspace RGB image otheroptions.result.png

or you need to use profiles

see
http://www.imagemagick.org/Usage/formats/#profiles
http://www.imagemagick.org/Usage/basics/#why

Re: Converting PSD to PNG problem

Posted: 2010-11-24T12:03:28-07:00
by cdcr1985
I will try, but I have other question, there are a option called -backgroud. In manual saids "The color is specified using the format described under the -fill option. The default background color (if none is specified or found in the image) is white." and I think this affects on my image, example http://k-rlitos.com/mic/tmp/imagemagick/problem.png , I tried to use, but I have the same result with or without background command. are there a transparent color?

Re: Converting PSD to PNG problem

Posted: 2010-11-24T15:42:11-07:00
by fmw42
I don't really understand the problem. The images look very much the same except for the text. Can you explain in more detail what the problem is?

Re: Converting PSD to PNG problem

Posted: 2010-11-25T07:51:09-07:00
by cdcr1985
Windows XP does not support some PNG attributes, look, after apply a fixed PNG image shows http://k-rlitos.com/mic/tmp/imagemagick/noproblem.png, this works when I use a non free program, but when I try to use imagemagick convert command windows does not recognize PNG fine http://k-rlitos.com/mic/tmp/imagemagick/problem.png , UserPanel is not transparent unlike, it's white.

Well, I follow your links, and I read profiles, and I noticed some attributes are different:
Fixed image:
Units: PixelsPerCentimeter
Alpha: none #00000000

Image with problem:
Units: PixelsPerInch
Alpha: rgba(255,255,255,0) #FFFFFF00


Also Channel statistics (Red, Green, Blue) are different, Channel statistics (alpha) are equal.

The other attributes the others wokrs same way with -intent Perceptual

Re: Converting PSD to PNG problem

Posted: 2010-11-25T11:08:38-07:00
by fmw42
Sorry I am not a windows user, so cannot say whether this a Windows issue or an IM issue.

PNG write options are at:

http://www.imagemagick.org/Usage/formats/#png_formats
http://www.imagemagick.org/Usage/formats/#png_write

But PNG format is under development right now for improvments and bug fixes.