Page 1 of 1

convert xx.png to xx.rgb

Posted: 2016-10-28T04:10:00-07:00
by xxxxxx
How can I convert xx.png to xx.rgb via imagemagick

Re: convert xx.png to xx.rgb

Posted: 2016-10-28T04:25:07-07:00
by Bonzo
convert xx.png xx.rgb

Re: convert xx.png to xx.rgb

Posted: 2016-10-28T04:30:56-07:00
by xxxxxx
I had tried to use "convert xx.png xx.rgb" .but canot open xx.rgb by ps.

Re: convert xx.png to xx.rgb

Posted: 2016-10-28T09:05:56-07:00
by snibgo
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?

Re: convert xx.png to xx.rgb

Posted: 2016-10-28T14:37:09-07:00
by Bonzo
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..

Re: convert xx.png to xx.rgb

Posted: 2016-10-31T09:09:49-07:00
by glennrp
"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