pulibrary / figgy

Valkyrie-based digital repository backend.
Other
35 stars 4 forks source link

PDF Resilience Attempts #6446

Closed tpendragon closed 6 days ago

tpendragon commented 6 days ago

For PDF derivatives this does three things:

  1. Ensure the whole resource rolls back appropriately if it fails to generate a derivative.
  2. Retry if VIPS creates a zero byte file.
  3. Uses the default DPI settings. 300 was resulting in 300 MB files PER PAGE for a PDF that was only 20 MB total.

Now it should only be able to make a zero byte file if the storage uploader somehow creates one when copying the file over.

Work towards #6436