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

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

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

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

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

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

Post by Ultra »

thank you... Imagick pointed me in the right direction !
Post Reply