Constant fractal::utils::media::image::THUMBNAIL_MAX_FILESIZE_THRESHOLD

source ยท
const THUMBNAIL_MAX_FILESIZE_THRESHOLD: u32 = _; // 1_048_576u32
Expand description

The maximum file size threshold in bytes for generating a thumbnail.

If the file size of the original image is larger than this, we assume it is worth it to generate a thumbnail, even if its dimensions are smaller than wanted. This is particularly helpful for some image formats that can take up a lot of space.

This is 1MB.