mirror of
https://github.com/ilri/cgspace-java-helpers.git
synced 2024-06-09 13:25:13 +02:00
Alan Orth
26d3cbd778
Make sure we don't modify thumbnails if the item is an Infographic because the JPG in the ORIGINAL bundle might actually be the "real" file, in which case the THUMBNAIL bundle would have a legitimate ".jpg.jpg" file. Also, limit the criteria for replacement to original bitstreams that are less than 100KiB. In my tests I found that we had 4,022 items with ".jpg.jpg" thumbnails, and the average file size of the originals in those items was 98KiB. Without considering the large inforgraphics, which are several megabytes apiece, the average of the remaining 3,765 originals was ~20KiB so 100KiB should be very safe. |
||
---|---|---|
.. | ||
main |