Git Product home page Git Product logo

archive-banners's Introduction

experimenting with cropping of the archive issues

specifically, the banner

To generate the crop of each issue's banner,

$ ./grab_and_crop.sh

which will loop over every year/month/1st day

  • grabbing the JPG of the first page, into ./originals
  • then cropping it using ImageMagick, into ./crops
    • NB, the crops are very basic: the first 1000 lines of pixels, 5000 wide.

If a image has already been downloaded, it will not be re-fetched. If a crop has already been done, it will not be re-done.

Once all the crops are done, an mp4 animation of the ./crops images will be generated into ./animations

  • full 5000x1000
  • scaled to 1080 width
  • padded to near 16x9 ratio

To skip the cropping and just generate the animation, specify the base mp4 filename as an argument, e.g.

$ ./grab_and_crop.sh ./animations/a_quick_test

To Do

  • read the XML to get a tighter bounding box around the banner
  • skip Saturdays (cos recent years have a very different layout)
  • tint the crop to be pink

archive-banners's People

Contributors

railsagainstignorance avatar wheresrhys avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.