Search found 4 matches

by harley24
2015-11-19T17:51:38-07:00
Forum: IMagick
Topic: Imagick setFont not working in web but works in console
Replies: 5
Views: 13178

Re: Imagick setFont not working in web but works in console

fmw42 wrote:Sorry, I do not know Imagick. Are you sure that is the correct full path?
The path is OK, and I found what's the problem. Thanks for your reply. :D
by harley24
2015-11-19T17:50:26-07:00
Forum: IMagick
Topic: Imagick setFont not working in web but works in console
Replies: 5
Views: 13178

Re: Imagick setFont not working in web but works in console

Well, I get the answer.

I've upgrade php from 5.5 to 5.6, than I found Imagick module disabled so I re-complied Imagick with PHP_TARGET="php5-6" (I'm running gentoo). But I forget restart php-fpm service. After I restart the service, it runs right.
by harley24
2015-11-19T17:40:44-07:00
Forum: IMagick
Topic: Imagick setFont not working in web but works in console
Replies: 5
Views: 13178

Re: Imagick setFont not working in web but works in console

Imagick apparently does not know about those fonts that Imagemagick has access to through the type.xml file. Try specifying the full path to your font file in your Imagick code. I change the code to using absolutely path, but still get the wrong image. The code after change is: ... /* Font ...
by harley24
2015-11-18T10:59:10-07:00
Forum: IMagick
Topic: Imagick setFont not working in web but works in console
Replies: 5
Views: 13178

Imagick setFont not working in web but works in console

Here's my code: <?php /* Create Imagick objects */ $image = new \Imagick(); $draw = new \ImagickDraw(); $color = new \ImagickPixel('#000000'); $background = new \ImagickPixel('none'); // Transparent /* Font properties */ $draw->setFont("annabelle"); $draw->setFontSize(80); $draw->setFillColor($color ...