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.
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.