Script to export all images at full resolution, and create an SVG containing them
See original GitHub issueBuilding 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?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
How To Export SVG Files In Photoshop - 2 Fastest Methods
Although these file types are most commonly used in AI, you can also create and export SVG files in Photoshop with one of...
Read more >Exporting images from QuPath - Image Scientist
File->Export images Original pixels: Output the image in a variety of formats. Often not possible without downsampling if you are using whole slide...
Read more >SAVE PLOT in R [as PDF, SVG, JPG, PNG, BMP, TIFF and PS]
In this tutorial you will learn how to save a plot in R, in vector graphics and high resolution, anti-aliased image formats. 1...
Read more >Convert SVG to image (JPEG, PNG, etc.) in the browser
You can now use the JavaScript SVG library Pablo to achieve this (I made it). See the toImage() and also download() for an...
Read more >Work with SVG files in Animate - Adobe Support
Select File > Export > Export Image. or select File > Publish Settings (select the SVG Image option in the Other Formats section.)...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So, also noting this would be a great function of
DistortableCollection
- PDF or SVG.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