liip / LiipImagineBundle

Symfony Bundle to assist in image manipulation using the imagine library
http://liip.ch
MIT License
1.66k stars 378 forks source link

SVG format empty after cache #1612

Open ElBidouilleur opened 3 weeks ago

ElBidouilleur commented 3 weeks ago

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 ?

dbu commented 1 week ago

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.