9794bba975
Explicitly drop the encoded image buffer after decoding and extracting EXIF orientation data. This reduces peak memory consumption during thumbnail generation by the size of the original file. The encoded data is no longer needed once the image is decoded into a DynamicImage, but it was being held in memory until the end of the spawn_blocking scope. Fixes excessive memory consumption in thumbnail generation.