LiipImagineBundle icon indicating copy to clipboard operation
LiipImagineBundle copied to clipboard

SVG format empty after cache

Open ElBidouilleur opened this issue 1 year ago • 1 comments

Hello

When i using liip:imagine:cache:resolve with svg file i don't have any error but the file in my cache is empty image

I used imagick 7 image

Do you have any solution ?

ElBidouilleur avatar Oct 19 '24 07:10 ElBidouilleur

does your imagick library support rasterizing svgs? does generating the image work when you request it through the browser?

svg is a vector format, for scaling it would make more sense to deliver the untransformed file and tell in html how large you want it rendered. but for some operations like adding borders or a watermark, we would still need to rasterize.

i checked the code, currently we don't do anything specific with svg in the bundle, we rely on Imagine to handle it.

dbu avatar Nov 07 '24 08:11 dbu