Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image uploading re-scaling is inconsistent! #2458

Open
eobet opened this issue Nov 3, 2023 · 4 comments
Open

Image uploading re-scaling is inconsistent! #2458

eobet opened this issue Nov 3, 2023 · 4 comments
Labels

Comments

@eobet
Copy link

eobet commented Nov 3, 2023

Steps to reproduce the problem

  1. Upload an image 3400 x 2300 pixels large (close to but below the 8MP limit)

Expected behaviour

Image should appear as it was uploaded (recompression begrudgingly ok)!

Actual behaviour

Image is scaled down to 1751 x 1184 pixels (close to 2MP)...

Detailed description

Please see the originally reported issue here:

mastodon#27612

Mastodon instance

oldbytes.space

Mastodon version

4.2

Browser name and version

Firefox 119

Operating system

Windows 10

Technical details

Issue does not appear on vanilla Mastodon. Contacted admin who updated to 4.2 already but now also updated glitch-soc. Issue unfortunately persists.

@eobet eobet added the bug label Nov 3, 2023
@Plastikmensch
Copy link

This looks to me that it has been resized client-side.
Upstream removed client-side resizing of images, but glitch-soc kept it for now.
The limit wasn't updated though, so the old 2MP limit applies when uploading media in the web interface.
There is a PR fixing that: #2304

@eobet
Copy link
Author

eobet commented Nov 3, 2023

Ah, just to clarify the root cause here... so when you upload something above 8MP you get the server side resizing which then is updated for 8MP despite glitch-soc being used? Is that why I'm only seeing images getting crunched down to 2MP when an image within the client side resizing size range kicks in?

@Plastikmensch
Copy link

Ah, just to clarify the root cause here... so when you upload something above 8MP you get the server side resizing which then is updated for 8MP despite glitch-soc being used? Is that why I'm only seeing images getting crunched down to 2MP when an image within the client side resizing size range kicks in?

It depends on the client.
Uploading an 3400x2300 image via the web interface resizes to 2MP (1751x1184).
When using a third-party client, it would stay somewhat close to 8MP (I don't know what calculation is used by the backend, but it's the same as upstream)
With the mentioned PR, it should be passed to the backend without being resized client-side, if I'm reading the code right.

@eobet
Copy link
Author

eobet commented Feb 18, 2024

This bug is still present even in v4.3.0-alpha.3+glitch! Just tested uploading a 1440p image via web and it got scaled down to 1080p. 🙁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants