Search found 5 matches

by star117
2016-03-29T01:01:26-07:00
Forum: IMagick
Topic: How can I convert grayscale blob to PNG?
Replies: 9
Views: 14477

Re: How can I convert grayscale blob to PNG?

What does your code now contain? What is the error message? What version of ImageMagick are you using? ... $im=new Imagick(); $im->setSize($width,$height); $im->readImageBlob($fill); // формат $im->setImageFormat("png"); $im->setOption('png:bit-depth', "16"); $im->setOption('png...
by star117
2016-03-28T23:40:57-07:00
Forum: IMagick
Topic: How can I convert grayscale blob to PNG?
Replies: 9
Views: 14477

Re: How can I convert grayscale blob to PNG?

I've never used Imagick, but the documentation http://php.net/manual/en/imagick.setsize.php says you need "setSize()". "setResolution()" corresponds to command-line "-density" which is unimportant. At the CLI, "-size" is essential for raw images because there...
by star117
2016-03-28T06:17:57-07:00
Forum: IMagick
Topic: How can I convert grayscale blob to PNG?
Replies: 9
Views: 14477

Re: Convert grayscale blob to PNG

Anyone can help? Maybe guru
by star117
2016-03-28T03:08:18-07:00
Forum: IMagick
Topic: How can I convert grayscale blob to PNG?
Replies: 9
Views: 14477

Re: Convert grayscale blob to PNG

Yes, I agree with you. But then I try to setFormat() Imagick throw exception like "Can not process empty Imagick object"...
by star117
2016-03-28T02:34:55-07:00
Forum: IMagick
Topic: How can I convert grayscale blob to PNG?
Replies: 9
Views: 14477

How can I convert grayscale blob to PNG?

HI! I find way to convert 16 bits grayscale blob to PNG image from file: convert -size 600x600 gray:rawdata.dat -depth 16 out.png its working. But I want to make this by PHP extension Imagick. Its not working. $fill="...long string witch have 16 bits pairs of grayscale..."; $im=new Imagick...