Thumbor 7.0.0 upsizing all JPEG images to MAX_WIDTH/MAX_HEIGHT
See original GitHub issueThumbor request URL
unsafe/filters:format(jpeg)/https://raw.githubusercontent.com/thumbor/thumbor/master/docs/images/blur_before.jpg
Expected behaviour
Thumbor 7.0.0 should retain the original image size and convert it to a jpeg.
Actual behaviour
Thumbor is instead upsizing the image up to the MAX_WIDTH or MAX_HEIGHT set when there isn’t a specified target size.
MAX_WIDTH and MAX_HEIGHT are set to 5000 on my server so in the above image example it returns an image of 3326x5000. Only seeing this issue after upgrading to thumbor 7.0.0 with no changes to config. On Thumbor 6.7.5 it retains the original source image’s dimensions
When MAX_WIDTH and MAX_HEIGHT are not set at all Thumbor 7.0.0 will retain the source image’s dimensions properly
Operating system
Debian 11
Your thumbor.conf
Only included settings changed from default:
MAX_WIDTH = 5000
MAX_HEIGHT = 5000
AUTO_WEBP = True
MAX_AGE = 315360000
ENGINE_THREADPOOL_SIZE = 2
STORAGE = 'thumbor.storages.no_storage'
# Tried with optimizer on and off and made no difference
OPTIMIZERS = [
'thumbor.optimizers.jpegtran'
]
USE_CUSTOM_ERROR_HANDLING = True
ERROR_HANDLER_MODULE = 'thumbor.error_handlers.sentry'
SENTRY_DSN_URL = redacted
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Upgrade to thumbor 7.0.0 · Issue #67 - GitHub
Hey! First of all congratulations on the incredible work you've been doing! Second, we should update MinimalCompact's Docker image to thumbor 7 and...
Read more >Thumbor Documentation - Read the Docs
Thumbor is a smart imaging service. It enables on-demand crop, resizing and flipping of images. It features a VERY smart detection of ...
Read more >Welcome to Thumbor's documentation! — Thumbor 7.2.0 ...
It enables on-demand crop, resizing and flipping of images. It features a VERY smart detection of important points in the image for better...
Read more >thumbor - PyPI
thumbor is a smart imaging service that enables on-demand cropping, resizing, applying filters and optimizing images. Cropping photos automatically can be a ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in https://github.com/thumbor/thumbor/releases/tag/7.0.1
Working on it now.