mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-24 05:52:07 +08:00
32e7f0a2e6
Thumbnail generation would sometimes create a file larger than the original, if the original was already well optimized, therefore making the thumbnail counter-productive. This change compares the sizes of the original and the generated thumbnail, and uses the smaller of the two if the thumbnail does not change the aspect ratio of the image. Fixes #1751 |
||
---|---|---|
.. | ||
Attachment.php | ||
AttachmentService.php | ||
HttpFetcher.php | ||
Image.php | ||
ImageRepo.php | ||
ImageService.php | ||
UploadService.php |