Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG format empty after cache #1612

Open
ElBidouilleur opened this issue Oct 19, 2024 · 1 comment
Open

SVG format empty after cache #1612

ElBidouilleur opened this issue Oct 19, 2024 · 1 comment

Comments

@ElBidouilleur
Copy link

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
Copy link
Member

dbu commented Nov 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants