Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question