Page 1 of 1

Create New Image From Scratch (not reading an existing image)

Posted: 2016-03-16T22:27:44-07:00
by Ultra
Hi,

is it possible to create an image from scratch and then write it to disk via ImageMagick ?

I'm not trying to read in an existing image, I'm trying to create a new image from scratch and save it as .tiff 16-bit.

Can anybody point me into the right direction on where I can find information on how to define the pixel values ?

Thanks a ton.

Re: Create New Image From Scratch (not reading an existing image)

Posted: 2016-03-16T23:05:53-07:00
by fmw42
Imagemagick or Imagick.

In imagemagick command line compiled as 16-bit use

Code: Select all

convert -size WxH xc:"somecolor" -depth 16 result.tiff
In Imagick, see http://us3.php.net/manual/en/imagick.newimage.php

Re: Create New Image From Scratch (not reading an existing image)

Posted: 2016-03-17T20:02:14-07:00
by Ultra
thank you... Imagick pointed me in the right direction !