Skip to content

leifgehrmann/erdapfel-papercraft

Repository files navigation

Generated printout example of the scripts in this project

erdapfel-papercraft

Print your own 1492 Erdapfel!

Attribution

The contents of textures_raw.tar.gz are from the David Rumsey Map Collection (Cartography Associates). Specifically the download link (Full Image Download...) from the following pages:

Tools requires

This project has a farrago of dependencies. Sorry.

  • A unix-system.
  • Git LFS to download an archive. See textures_raw.tar.gz
  • tar to unzip an archive.
  • GDAL (gdal_translate) for fixing a corrupt image.
  • ImageMagick (magick) for extracting images.
  • Python + Poetry
    • Run poetry install to install dependencies.
  • GhostScript for combining the PDF files.

Generating results

% make masks_png
% make textures_raw
% make textures_masked
% make printout_a4_20cm
% make printout_combined

For alternative printout sizes, printout.py accepts different parameters. So instead of make printout_a4_20cm you can directly pass in parameters:

% poetry run python printout.py                     
printout.py [input] [width] [height] [diameter] [margin] [sep] [output]
  [input]:     Input images (Must be PNGs)
  [width]:     Width of PDF in cm (A4 = 21.0)
  [height]:    Height of PDF in cm (A4 = 29.7)
  [diameter]:  Diameter of printed globe in cm
  [margin]:    CSV of Margins for the whole document in cm (top,right,bottom,left)
  [sep]:       CSV of Margins between images in cm (top,right,bottom,left)
  [output]:    Output directory of all the printout PDFs

Example: printout.py textures_masked/ 21.0 29.7 20.0 0.2,0.5,0.2,0.5 0,0.5,0,0 printout/

For globe sizes larger than 25cm in diameter, run the following commands to create hemispheres. This will split the images in half and allow you to create a 1:1 scale version of Behaim's globe using just A4 paper!

% make textures_masked_hemispheres
% make printout_a4_50cm
% make printout_combined

About

Print your own 1492 Erdapfel!

Resources

License

Stars

Watchers

Forks