NaturalHistoryMuseum / iiif-image-server

A IIIF Image Server
GNU General Public License v3.0
5 stars 0 forks source link

Handle non-JPEG images in disk profile #45

Closed alycejenni closed 9 months ago

alycejenni commented 9 months ago

Adds a /jpeg subfolder to cache directories (e.g. /base/data/iiif/cache/vfactor/jpeg). When a non-JPEG image is requested as a preview or thumbnail, the image is converted and stored in this cache.

Also adds these config options to the disk type: cache_for: how long the converted images are stored for cache_size: max size of the converted image cache convert_quality: JPEG quality of the converted image convert_subsampling: subsampling value to use when converting