Page MenuHomePhabricator

Export GLAM map in great quality
Closed, ResolvedPublic3 Estimated Story Points

Description

Try to export https://mrjohncummings.carto.com/viz/eb3e0f07-6cb3-435c-97fe-31835056a0e2/public_map in as good quality/resolution as possible.

According to, https://carto.com/blog/exporting-maps/, we can use https://github.com/CartoDB/carto-print to get better results than the web interface.

Event Timeline

My only other thought on how to do this is through

  • Finding someone with an 8K monitor
  • Trick my computer into thinking it has a very high res display somehow
  • Create a virtual machine with a very high resolution, not sure if this is possible or how to do it

Here is the map, I can change the base layer as needed
https://mrjohncummings.carto.com/viz/eb3e0f07-6cb3-435c-97fe-31835056a0e2/public_map

Ha, I worked it out, I faked my screen resolution in Firefox using the web developer tools then took a screenshot using Nimbus which stitches everything together, great success

screenshot-mrjohncummings.carto.com-2019.07.11-11-44-17.png (5×8 px, 2 MB)

...just as I wanted to comment that I finally got carto-print to work 🤷

But I am going to see what I can get out of it (bounding boxes confuse me greatly)...

@Alicia_Fagerving_WMSE :( I thought it would work but the max screen resolution is 9999x9999 which doesn't work, I think python is the only real option.....

On a side note. Maybe add a comment to the Wikimedia Commons file description about how the data was exported? (i'm guessing some sparql query that then got shoved into carto.com?

Boom. @Mrjohncummings

Caution: This file is 18,000 x 10,000 px, weighs 27 MB and makes my computer sad when I open it. It has some garbage landmass near the edges so it should be cropped before usage / uploading somewhere. It's a jpg because that's what carto-print spits out when you set the format to CMYK, which I did so that it's suitable for printing. It looks like you can get a png if you set the format to RGB, so it can be generated easily if we want that. It was done using:

carto-print mrjohncummings tpl_eb3e0f07_6cb3_435c_97fe_31835056a0e2 160 90 3 " -180,-90,180,90" --dpi 300 --img-format CMYK

@Alicia_Fagerving_WMSE Crazy question.... is it possible to get a bigger image? Like could you just ask for 600dpi? I'd like to use a close up of individual countries in the presentation

The best way to do that would be to modify the zoom and/or bounding box coordinates, and generate close-ups of specific areas, e.g. Europe. It's doable if you can figure out the bounding box. It's in the format min lon,min lat,max lon, max lat.