ryanvilbrandt / comic_git

A statically-hosted web comic server core intended to be hosted on github.io. For help getting started, click the Wiki link above!
23 stars 7 forks source link

Dynamically get thumbnail for most recent comic #14

Closed cvilbrandt closed 4 years ago

cvilbrandt commented 4 years ago

I need a 200px x 150px thumbnail of the most recent comic to slot into the header.

I would like the algorithm to:

  1. Resize the most recent comic to 600px wide (keep aspect ratio)
  2. Locate a face
  3. Crop centered around that face
  4. Store it as a separate thumbnail
ryanvilbrandt commented 4 years ago

OpenCV would be required for this, and as far as I can tell it may not be possible to set up automatically for Github Pages. I would recommend this is something that the creator does manually, or with their own script.