#
#
#yamynginx2020-03-25 11:23:47
PHP
#yamynginx, 2020-03-25 11:23:47

Remove transparent pixels and blur?

Hello.
1) How can I remove transparent pixels using Imagick?
Example: a photo with a resolution of 2000x2000, it has a certain vector logo with a resolution of 1000x1000, but in the end, half of the picture remains empty, when resized, of course, it will decrease much less than I need, and the logo will not be visible at all.
2) How can I apply a blur filter to a photo using Imagick? And what kind of filters does Imagick have? I would like to implement partial cutting of pixels so that, for example, every second pixel is transparent.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twobomb, 2020-03-25
@muxui

trimImage
blurImage
getimagepixelcolor
ImagickPixel::setColor

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question