convert xx.png to xx.rgb

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
xxxxxx
Posts: 2
Joined: 2016-10-28T04:04:07-07:00
Authentication code: 1151

convert xx.png to xx.rgb

Post by xxxxxx » 2016-10-28T04:10:00-07:00

How can I convert xx.png to xx.rgb via imagemagick

Bonzo
Posts: 2970
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: convert xx.png to xx.rgb

Post by Bonzo » 2016-10-28T04:25:07-07:00

convert xx.png xx.rgb

xxxxxx
Posts: 2
Joined: 2016-10-28T04:04:07-07:00
Authentication code: 1151

Re: convert xx.png to xx.rgb

Post by xxxxxx » 2016-10-28T04:30:56-07:00

I had tried to use "convert xx.png xx.rgb" .but canot open xx.rgb by ps.

snibgo
Posts: 11714
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert xx.png to xx.rgb

Post by snibgo » 2016-10-28T09:05:56-07:00

As Bonzo says, the answer is in the question.

However, what PS expects to find in the file may not be what IM puts in it. IM makes a headless file, containing integer pixel data, typically 16 bits/channel. What does PS want?
snibgo's IM pages: im.snibgo.com

Bonzo
Posts: 2970
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: convert xx.png to xx.rgb

Post by Bonzo » 2016-10-28T14:37:09-07:00

According to the Imagemagick formats page:
Use -size and -depth to specify the image width, height, and depth. To specify a single precision floating-point format, use -define quantum:format=floating-point. Set the depth to 32 for single precision floats, 64 for double precision, and 16 for half-precision.
So you will probably have to add some more detail to the convert command. You will have to do some research as snibgo suggests as .rgb does not seem to be a popular format..

User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: convert xx.png to xx.rgb

Post by glennrp » 2016-10-31T09:09:49-07:00

"RGB" used to be a popular format on SGI machines. ImageMagick calls them ".sgi" now. It might be what PS is wanting, if so use

Code: Select all

magick xx.png sgi:xx.rgb

Post Reply