question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Thumbor 7.0.0 upsizing all JPEG images to MAX_WIDTH/MAX_HEIGHT

See original GitHub issue

Thumbor 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:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
heynemanncommented, Jan 22, 2022
2reactions
heynemanncommented, Jan 22, 2022

Working on it now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found