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 to JPG seems to fail #191

Open
cbeauchesne opened this issue Jun 9, 2021 · 3 comments
Open

SVG to JPG seems to fail #191

cbeauchesne opened this issue Jun 9, 2021 · 3 comments

Comments

@cbeauchesne
Copy link
Member

On this page, the svg is rendered into jpg : https://www.camptocamp.org/images/141872/fr/trace-de-la-voie-moussaillons-arete-du-jardin-arete-sw-de-la-croix

And here is the raw file : https://media.camptocamp.org/c2corg-active/1458815499_371099824.svg

Site note, why do we convert it to JPG? SVG support from browser are now a standard. WDYT @brunobesson @lbesson ?

@lbesson
Copy link
Member

lbesson commented Jun 9, 2021

Thumbnails should still be generated in jpeg, since the original file is often big (with incorporated bitmap), often between 1 and 2 Mo.

Maybe we could keep the svg for displaying the image as BI, but maybe we should check the normal size before.

As an aside, the svg rendering is done with rsvg (on v5 it was inkscape)
The v6_image has been updated, rendering is probably better now BUT last time we tried to change the version of v6_images in prod, there was some failure (worked in demo env), and we didn't had time with Bruno to investigate more.
(side note: can you test your svg against demo env, once @brunobesson confirms the version here is a more recent one?)

@lbesson
Copy link
Member

lbesson commented Jun 9, 2021

For your example (maybe not a very representative one), BI is ~70ko, original is ~500ko)

@brunobesson
Copy link
Member

confirms the version here is a more recent one

Yes, latest release v6.1.6 is available on demo.

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

3 participants