Sample for raw image converting

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
damar1st
Posts: 2
Joined: 2014-08-18T08:01:30-07:00
Authentication code: 6789

Sample for raw image converting

Post by damar1st »

Hey guys,

I am searching for a sample to convert a raw image file with BGRA4444 into a png with ABGR4444 using php.
But there is no sample in the whole www.

Cheers
damar1st
Posts: 2
Joined: 2014-08-18T08:01:30-07:00
Authentication code: 6789

Re: Sample for raw image converting

Post by damar1st »

Sleepy forum
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Sample for raw image converting

Post by fmw42 »

I do not use raw format so this is something I am just guessing at. But you can load the image as raw, then separate the channels, then recombine the channels into the order you want and save as PNG, if PNG supports that format?

see
http://www.imagemagick.org/Usage/formats/#crw
RGBA at http://www.imagemagick.org/script/formats.php
http://www.imagemagick.org/Usage/color_basics/#separate
http://www.imagemagick.org/Usage/color_basics/#combine
http://www.imagemagick.org/Usage/color_ ... bine_other

Perhaps one of the raw image format users can give you better instructions.
Post Reply