Page 1 of 1

Sample for raw image converting

Posted: 2014-08-18T08:07:59-07:00
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

Re: Sample for raw image converting

Posted: 2014-09-07T04:48:26-07:00
by damar1st
Sleepy forum

Re: Sample for raw image converting

Posted: 2014-09-07T10:48:39-07:00
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.