USGCRP / gcis

Global Change Information System
https://data.globalchange.gov
Other
20 stars 16 forks source link

[NCA4 Release] Generate thumbnails for synced figures #672

Closed adthrasher closed 5 years ago

adthrasher commented 5 years ago

Image thumbnails are not automatically generated on file upload. They are only generated on file creation if a remote file is used. Otherwise, they are generated when the thumbnail is used in the template. For the NCA4 website purposes, image thumbnails are not generated during an API call. Angel is currently expecting the thumbnail to exist for display in the metadata viewer, but for non-viewed figures, the thumbnail comes back null.

I have no real preference regarding implementation details. Generating a thumbnail on any file upload is probably the best, but requiring a flag on upload or retrieval is also fine, as is generating on retrieval via the API.