A
A
alst1612016-01-09 12:55:45
PHP
alst161, 2016-01-09 12:55:45

How to crop an image with transparency?

I am developing a project on laravel 5. It is necessary to implement the following: apply a mask or crop one corner a little of the image. I use image.intervention and the following function $img->mask('public/mask.svg'); but in the place of "cutoff" there is a white background. How to make it transparent?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Timofeev, 2016-01-10
@phtimofeeff

to make the edge transparent, you need to cut png, not jpeg ... I
suspect that you are cutting just jpeg, but it (jpeg) does not provide for transparency.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question