N
N
Nikita Kochnev2017-08-03 11:58:37
MODX
Nikita Kochnev, 2017-08-03 11:58:37

Why after processing png images with pThumb, they increase their weight?

Hello again. I use pThumb to display images on the site. For jpg, gif formats everything works fine, sort of. But with png some kind of garbage. After processing by the plugin, the images increase their size by 3 or more times. It was 50kb became 150kb. I updated phpThumb to the latest version from the official site, but this did not solve this problem. I make the call like this:

<img class="responsive-img" src="" alt="">

Where "ra=1" is a necessary crutch for png, even resizing won't work without it. And "q=10" doesn't work at all, why?
My site with this jamb
Сайт. Смотрите раздел "Ремонт iPhone", Картинки в карусели выводятся через pThumb, картинки в попап - выводятся напрямую.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Lero, 2017-08-03
@Corazonroto

I will assume that your images are in png8, and pThumb converts them to png24. For the sake of experiment, try uploading a png24 image and see what happens with the size after resizing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question