A
A
Alexey2015-02-20 13:23:31
PHP
Alexey, 2015-02-20 13:23:31

Imagick - why does png make text bold?

I generate an image with text. The problem is that I want to save in png. However, when saved as png, the image looks worse than when saved as jpg. For now, I save as jpg and then convert to png, but this is stupid.
The code:

$image->setCompressionQuality(100); //смена на 0 не дает ничего
$image->setCompression(Imagick::COMPRESSION_NO); //включение не дает ничего

$image->setImageFormat('jpeg');
$image->writeImage('213.jpg');
$image->setImageFormat('png');
$image->writeImage('213.png');

Font ttf, tried different ones - the problem is not in it. Who can faced similar?
ccbf92fe51684a41b165152e24e0582e.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2015-02-20
@Squier

Most likely PNG-8 is used and it has reduced the number of colors to 2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question