Page 1 of 1

Writing Single Color DPX Files Using Imagick on PHP

Posted: 2016-03-01T17:01:07-07:00
by Ultra
Hi,

I was looking for Imagick tutorials but could not find any. I'm experienced in PHP, I'm not sure about specific flags and setting in Imagick.

I want to write single color (every pixel in the image has the same color) 10-bit DPX files, example:

file format: DPX
frame size: 1920x1080
bit depth: 10-bit
color for this frame: 0/0/1023 - this is 100% blue in 10-bit R|G|B

what would be the Imagick code to write this ? Any settings that I'm missing ?

Thank you.

Re: Writing Single Color DPX Files Using Imagick on PHP

Posted: 2016-03-01T17:54:13-07:00
by fmw42
Sorry, I do not use Imagick. Best I can suggest is looking at http://us3.php.net/manual/en/book.imagick.php

Note you could also use an Imagemagick command line in PHP exec() to do the processing.

Re: Writing Single Color DPX Files Using Imagick on PHP

Posted: 2016-03-01T18:10:03-07:00
by Ultra
thanks for the link, I'm aware of the PHP manual...

I am not sure though how to specify RGB color values for pixels... all I see is peeps reading in other images that they are then transforming...

I need to create an image from scratch... how would I do that ?

Re: Writing Single Color DPX Files Using Imagick on PHP

Posted: 2016-03-01T18:54:57-07:00
by fmw42
Sorry, that is not my area of expertise. But perhaps this will help -- http://www.imagemagick.org/Usage/formats/#rgb