Simple web app for generating a thumbnail image from a PDF document. Used to generate thumbnails displayed in the WGNHS publications catalog.
Live app: https://wgnhs.github.io/pdf-image-gen/
- Git and Git Bash (if using Windows)
Note: This app relies on the WGNHS elements NodeJS package published at https://www.npmjs.com/package/@wgnhs/elements . The code for this package is located at https://github.com/wgnhs/wgnhs-elements . No installation via Node is needed - the package is accessed from https://cdn.jsdelivr.net/npm/@wgnhs/elements .
-
Clone this repository to your computer
git clone https://github.com/wgnhs/pdf-image-gen.git -
Move into the directory that contains the repo you just cloned
cd pdf-image-gen -
Checkout a new feature branch using Git
git checkout -b my-feature-branch -
Open index.html in the code editor of your choice, make desired changes and save.
-
Add, commit and push the changes using Git.
git add index.html git commit -m "Updates to make this app even better" git push origin my-feature-branch -
Sign into Github and navigate to this repository https://github.com/wgnhs/pdf-image-gen
-
Click Pull requests then New pull requests (or go to https://github.com/wgnhs/pdf-image-gen/compare)
-
Leave
base:master, set compare to your working branch, excompare:my-feature-branchand click Create pull request -
Add any additional comments in the Description box click Create pull request
-
Click Merge pull request, then click Confirm merge
-
After the pull request is successfully merged, the built-in Github pages build deployment action will be triggered. This action builds the code and publishes it https://wgnhs.github.io/pdf-image-gen. Progress of this action also appears https://github.com/wgnhs/pdf-image-gen/actions .
This app was previoulsy run on dev.wgnhs.wisc.edu , on port 8081, from an off-the-shelf Docker NGINX Alpine image. While there's record that the app once ran there and was stopped in March 2025, there's no record of the code that was running or its Docker config.