Writing Single Color DPX Files Using Imagick on PHP

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
Ultra
Posts: 4
Joined: 2016-03-01T16:55:46-07:00
Authentication code: 1151

Writing Single Color DPX Files Using Imagick on PHP

Post by Ultra » 2016-03-01T17:01:07-07:00

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.

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

Re: Writing Single Color DPX Files Using Imagick on PHP

Post by fmw42 » 2016-03-01T17:54:13-07:00

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.

Ultra
Posts: 4
Joined: 2016-03-01T16:55:46-07:00
Authentication code: 1151

Re: Writing Single Color DPX Files Using Imagick on PHP

Post by Ultra » 2016-03-01T18:10:03-07:00

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 ?

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

Re: Writing Single Color DPX Files Using Imagick on PHP

Post by fmw42 » 2016-03-01T18:54:57-07:00

Sorry, that is not my area of expertise. But perhaps this will help -- http://www.imagemagick.org/Usage/formats/#rgb

Post Reply