What is the problem?
For some images, the height of the thumbnail generated by my local thumbor-plugins is different to that generated by beta.
For example:
- Beta (height: 225px): https://upload.wikimedia.beta.wmflabs.org/wikipedia/en/thumb/1/1b/CuteGoat.jpg/320px-CuteGoat.jpg
- Local (height: 224px): https://gitlab.wikimedia.org/dwalden/thumbor-testing/-/blob/main/data/local_320px-CuteGoat.jpg
Reproduction
My configuration (thumbor.conf) is: P34931
I generate the thumbnail on my local system by going to the url: http://localhost:8800/thumbor/unsafe/<width>x/<url>.
I have reproduced it with thumbor running in docker on Buster:
$ blubber .pipeline/blubber.yaml dev > Dockerfile $ make build
I have also reproduced this when I installed locally via python on Bullseye:
python3 -m pip install -r requirements.txt
Images to reproduce problem
- https://upload.wikimedia.beta.wmflabs.org/wikipedia/en/1/1b/CuteGoat.jpg
- https://upload.wikimedia.beta.wmflabs.org/wikipedia/commons/7/77/%C3%89glise_monolithe_de_Saint-%C3%89milion_-_J-A_Brutails_-_Universit%C3%A9_Bordeaux_Montaigne_-_0015.jpg (at 320px width)
- https://upload.wikimedia.beta.wmflabs.org/wikipedia/commons/9/95/%D8%AF%D9%85%D8%B4%D9%82_%D8%AC%D8%A8%D9%84_%D9%82%D8%A7%D8%B3%D9%8A%D9%88%D9%86_%40-%243_4.jpg (at 640px width)
Environment
Operating system: Debian Buster and Bullseye
thumbor-plugins: commit 92eafe2477fdd122244b572e1a0f57652bdbc8f8