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 »

How can I convert xx.png to xx.rgb via imagemagick
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: convert xx.png to xx.rgb

Post by Bonzo »

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 »

I had tried to use "convert xx.png xx.rgb" .but canot open xx.rgb by ps.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert xx.png to xx.rgb

Post 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?
snibgo's IM pages: im.snibgo.com
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: convert xx.png to xx.rgb

Post 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..
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 »

"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