Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Latest commit

 

History

History
15 lines (10 loc) · 578 Bytes

notes.md

File metadata and controls

15 lines (10 loc) · 578 Bytes

Image derivatives

Moscon images for item pages:

  • thumbs 300px height, id + "_th.jpg"
  • sm 800px height, id + "_sm.jpg"

Create images from PDFs using ImageMagick (setup instructions). Set up folder with all PDFs with new filenames. Create the small images:

for f in *.pdf; do magick -density 500 "$f"[0] -resize 800x800 -flatten "small/${f%.pdf}_sm.jpg"; done

Then cd small, and create thumbs from the smalls:

for f in *.jpg; do magick "$f" -resize x300 -flatten "../thumbs/${f%_sm.jpg}_th.jpg"; done