nomic-ai / nomic

Interact, analyze and structure massive text, image, embedding, audio and video datasets
https://atlas.nomic.ai
1.13k stars 151 forks source link

Export atlas view as image #136

Open phisanti opened 1 year ago

phisanti commented 1 year ago

I have been playing around with Nomics API and I was wondering if it is possible to export a particular view (at least the general view) of an atlas as PNG or other image format.

bmschmidt commented 1 year ago

There's no python way to export the image right now, but if you simply want to download a png there is an undocumented (which is to say, unstable--no guarantees this will work in 6 months) method you can use in a web browser. Note that right now this does not export labels, just a png of currently visible points.

  1. Go to the page of the atlas map you're viewing.
  2. Open the developer tools pane (command-option-i on Chrome in a mac)
  3. paste into it the string scatterplot.make_big_png()

This downloads a png 3x the current screen resolution. It's pretty finicky though: for instance, it won't work properly if you've zoomed the map at all. If there's something more specific you want, happy to help more.

Careen-dev commented 1 month ago

There's no python way to export the image right now, but if you simply want to download a png there is an undocumented (which is to say, unstable--no guarantees this will work in 6 months) method you can use in a web browser. Note that right now this does not export labels, just a png of currently visible points.

1. Go to the page of the atlas map you're viewing.

2. Open the developer tools pane (command-option-i on Chrome in a mac)

3. paste into it the string `scatterplot.make_big_png()`

This downloads a png 3x the current screen resolution. It's pretty finicky though: for instance, it won't work properly if you've zoomed the map at all. If there's something more specific you want, happy to help more.

I can't export the gallery view as an image using your method