Recreating the Past - John Maeda's 10 Morisawa Posters
Morisawa 8, Animated (see original)
With upfront apologies for any spaghetti code! (especially the animation code, jeez)
Requirements
- Ghostscript
- ImageMagick (for animation)
- Python 3 (for animation)
Environment for development
brew install entr
- Install Skim
- Check "Check for file changes" in Skim -> Sync Preferences
defaults write -app Skim SKAutoReloadFileUpdate -boolean true
so it doesn't bother you all the timels *.ps | entr ps2pdf -sPAPERSIZE=a3 -dOptimize=true /_ output.pdf
- Keep Skim open on output.pdf for preview, and you can live edit any PS file in the working dir.
Export
ps2pdf -sPAPERSIZE=a3 -dOptimize=true morisawa_8.ps output.pdf
convert -density 300 -background white -alpha remove -resize 1413x2000 -quality 80 output.pdf FILENAME.jpg
Animation
Generate
python generate_morisawa.py
mkdir out_img
gs -r300 -dDownScaleFactor=6 -sDEVICE=pnggray -sOutputFile=out_img/out-%d.png -dBATCH -dNOPAUSE -sPAPERSIZE=a3 out_ps/*.ps
- Sometimes Ghostscript outputs bad frames, so go into
./out_img
and delete them. (brownie points if you figure out why!) convert out_img/*.png -reverse out_img/*.png -set delay 5 -loop 0 -filter LanczosRadius -distort Resize 60% animation.gif
Edit
- Edit the
morisawa_fun.ps.tpl
file, putting in!!REPLACEMENT!!
strings where appropriate. - Edit
generate_morisawa.py
to replace the above strings as desired. - Probably clear the
./out_ps
directory