denshoproject / ddr-public

Web UI for publishing DDR collections.
Other
1 stars 1 forks source link

Wrong thumbnail images for ddr-ajah-8 #203

Open gjost opened 1 year ago

gjost commented 1 year ago

Collection files are video interviews. Access files were imported via access_path i.e. not generated by imagemagick from the videos. There was a mismatch between the images and their associated videos. The image files were fixed and republished, but the thumbnails have already been made and are not updating. sorl.thumbnail generates the hashed filenames from the filenames, geometry, and efx rather than the file contents, so the existing thumbnails are "stuck". sorl.thumbnail doesn't seem to have a way to clear particular images.

Proposed fix:

gjost commented 1 year ago

sorl-thumbnail has no way to clear/clean individual thumbnails, so solved this by deleting the thumbnails manually:

Biggest problem was that browsers cached the thumbnails aggressively and it was difficult to tell if the fix worked.

If we had a larger collection we'd probably have to write a script that used the API to get filenames and stuff.