c2corg / v6_images

Images handling app for c2c.org v6
GNU Affero General Public License v3.0
1 stars 2 forks source link

SVG to JPG seems to fail #191

Open cbeauchesne opened 3 years ago

cbeauchesne commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

brunobesson commented 3 years ago

confirms the version here is a more recent one

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