scottanderson / railroad.studio

A save file editor for Railroads Online
https://railroad.studio
MIT License
21 stars 10 forks source link

Saving map with activated layers as image #19

Open Griffon26Griffik opened 1 year ago

Griffon26Griffik commented 1 year ago

Hi, it is not an issue but a question as title says. Is it possible to get and image of actual map (viewed by your save editor) to use it further? Thx for your reply, great tool. Have a nice day

scottanderson commented 1 year ago

I experimented with doing this back in January. It is very slow to generate a large images in the web browser.

0f35fb7af505f94867f251df624d1fd8e027e90d

RichardDastardly commented 3 weeks ago

There is at least one Firefox extension that will save a whole page as an image ( I just tested it ) - it would be handy if there was a way of hiding the RRS UI temporarily though. Also perhaps a way of zooming in smaller steps.

scottanderson commented 3 weeks ago

@RichardDastardly, you could try running the following commands in the console (F12):

document.getElementById('header').remove();
document.getElementById('footer').remove();
window.studio.map.panZoom.setZoomScaleSensitivity(0.05);
RichardDastardly commented 3 weeks ago

Using Waterfox ( Firefox fork ), all worked perfectly. Combined with a large virtual resolution and the addon, that'll give some very large images.

The addon I'm currently testing is "Page Saver WE" if you want to see what it's doing internally - I haven't looked at the source myself. yet.