c2corg / v6_images

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

Converting SVG images #8

Closed ginold closed 7 years ago

ginold commented 8 years ago

There is a problem with the conversion of SVG files, it gives the following result: http://c2corgv6-demo.gis.internal:8480/active/1470394049_1761799458.png

The original SVG file should also be available, with it's converted JPG/PNG versions.

tsauerwein commented 8 years ago

Could you attach the svg file that you used for testing?

asaunier commented 8 years ago

See also https://github.com/c2corg/v6_api/issues/357 concerning SVG converting.

ginold commented 8 years ago

bornes_camipro.svg.zip

asaunier commented 7 years ago

Any update concerning the support of SVG files? This is critical! Do we still need to convert SVG images? Perhaps for thumbnails?

An example of a SVG image in v5: http://www.camptocamp.org/images/208579/fr/face-n-des-grandes-jorasses-quelques-itineraires => the image is converted to JPEG but the original is an SVG: http://s.camptocamp.org/uploads/images/1336219429_894641918.svg

fjacon commented 7 years ago

@ginold what is the situation for V6 ? Can we upload SVG ?

ginold commented 7 years ago

well, nothing has changed - you can upload but the svg will be converted to a png file.

asaunier commented 7 years ago

Right, it's done here: https://github.com/c2corg/v6_images/blob/0cc2f4757f651de84b0e9aa7c9b0f8cd5de0c4e5/c2corg_images/views.py#L77-L86

Not sure converting SVG to PNG is relevant though because most of the time the SVG files are photos with routes drawn above => JPEG would be better. As in v5, for instance: http://s.camptocamp.org/uploads/images/1336219429_894641918.svg http://s.camptocamp.org/uploads/images/1336219429_894641918.jpg

Is the original SVG still available after the conversion? including in the image detail view?

arnaud-morvan commented 7 years ago

This is done and merged, closing

asaunier commented 7 years ago

Reopening because it seems the SVG are not taken into account as expected in the demo:

arnaud-morvan commented 7 years ago

SVG files are correctly uploaded as SVG, but format detection returns PNG so the file extention is '.png'

asaunier commented 7 years ago

Is this change now available in demov6?

asaunier commented 7 years ago

Closing since the related changes were "ready for demo" before the golive and are now in production.