View a Image has mode Indexed color in Photoshop CS5 but is RGB in PS CC

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
trangtv04110
Posts: 7
Joined: 2014-03-30T20:57:37-07:00
Authentication code: 6789

View a Image has mode Indexed color in Photoshop CS5 but is RGB in PS CC

Post by trangtv04110 »

Hi,
I have a web application used Imagick to generate image.
Then I open the image width Photoshop CS5, view Image mode, it is Indexed color
But if I open the image width Photoshop CC, view Image mode, it is RGB color.

The image here:

Image

Can someone help me ?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: View a Image has mode Indexed color in Photoshop CS5 but is RGB in PS CC

Post by snibgo »

Exiftool is probably the most reliable method of finding the actual formats of images in files. It says this is indexed.
snibgo's IM pages: im.snibgo.com
trangtv04110
Posts: 7
Joined: 2014-03-30T20:57:37-07:00
Authentication code: 6789

Re: View a Image has mode Indexed color in Photoshop CS5 but is RGB in PS CC

Post by trangtv04110 »

I want change from Indexed to RGB, how?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: View a Image has mode Indexed color in Photoshop CS5 but is RGB in PS CC

Post by snibgo »

convert 1.png -define png:color-type=2 out.png
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: View a Image has mode Indexed color in Photoshop CS5 but is RGB in PS CC

Post by fmw42 »

this works also, since your image has transparency

convert 1.png PNG32:1_new.png

Sorry, I do not know how to do that in Imagick.


see
http://www.imagemagick.org/Usage/formats/#png_formats
http://www.imagemagick.org/Usage/formats/#png_write
trangtv04110
Posts: 7
Joined: 2014-03-30T20:57:37-07:00
Authentication code: 6789

Re: View a Image has mode Indexed color in Photoshop CS5 but is RGB in PS CC

Post by trangtv04110 »

Thank you all.

I want the image was created is RGB and it will display exactly at all Photoshop version.

It seems difficult :(
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: View a Image has mode Indexed color in Photoshop CS5 but is RGB in PS CC

Post by fmw42 »

Assign it a profile, if the input image does not have one (sRGB or Adobe profiles).
Post Reply