question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Script to export all images at full resolution, and create an SVG containing them

See original GitHub issue

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?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jywarrencommented, May 9, 2019

So, also noting this would be a great function of DistortableCollection - PDF or SVG.

1reaction
sashadev-skycommented, Apr 16, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found