Leaflet.DistortableImage
Leaflet.DistortableImage copied to clipboard
Script to export all images at full resolution, and create an SVG containing them
Building on the full-resolution export completed in https://github.com/publiclab/Leaflet.DistortableImage/pull/100, we should think of a way to export all images (it might need to be one at a time or it'd overload the system?) and then combine them all into a single document in SVG format.
This would actually save space and processing power vs. combining them into a giant raster image.
We could use this library:
https://svgjs.com/docs/2.7/elements/#svg-image
The syntax looks pretty simple;
var draw = SVG('drawing').size(300, 300)
var image = draw.image('/path/to/image.jpg', 200, 300)
We'd love help with this and it could be an interim solution in parallel to the exporter work going on in https://github.com/publiclab/Leaflet.DistortableImage/issues/126! @sashadev-sky, what do you think of this?
@jywarren yeah I would love to work on this one! Should I get started here (client-side export) instead of mapknitter?
sure!!
On Wed, Mar 27, 2019 at 8:12 AM Sasha Boginsky [email protected] wrote:
@jywarren https://github.com/jywarren yeah I would love to work on this one! Should I get started here (serverless export) instead of mapknitter?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/publiclab/Leaflet.DistortableImage/issues/164#issuecomment-477123226, or mute the thread https://github.com/notifications/unsubscribe-auth/AABfJ_acy_nbjGELJ4MEO30Xp1pxdfgIks5va2AWgaJpZM4bmBTq .
@sashadev-sky Are you working on this (or have plans to)?
Plan to in the future! Working on the exporter from the mapknitter side first here: #413. If you end up wanting to work on it before I get to it that's totally fine, just mention me here to notify me
Also connecting to PDF generation idea here: https://github.com/publiclab/mapknitter/issues/219
So, also noting this would be a great function of DistortableCollection
- PDF or SVG.