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 » 2014-11-19T02:43:06-07:00

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: 11216
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 » 2014-11-19T03:03:47-07:00

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 » 2014-11-19T19:41:12-07:00

I want change from Indexed to RGB, how?

snibgo
Posts: 11216
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 » 2014-11-19T21:03:04-07:00

convert 1.png -define png:color-type=2 out.png
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 24470
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 » 2014-11-19T21:40:42-07:00

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 » 2014-12-05T01:18:56-07:00

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: 24470
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 » 2014-12-05T10:33:04-07:00

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

Post Reply