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

resize image of a post #223

Closed
ghost opened this issue Apr 22, 2017 · 2 comments
Closed

resize image of a post #223

ghost opened this issue Apr 22, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 22, 2017

Resize image of a post which is more than 4 Mo to add it.

@Vavassor
Copy link
Collaborator

This already happens? The camera in my phone actually generates most images larger than 4MB by default, so I ran into the problem very early. Right now, it scales down to the nearest convenient size that fits the larger side within 1024 pixels.

This is pretty arbitrary. I originally picked 4096 because a 4096 pixel square .jpg is frequently near/under 4MB (more like 3.2-3.7, from what I tested). But I realised that was quite a bit larger than most monitor or phone screen sizes. So all it really did was inflate upload times and take up more server space.

@ghost
Copy link
Author

ghost commented Apr 24, 2017

it does, my mistake, but apparently it's the ratio height / width which is more than 1280 x 1280 which cause problems on upload (a user scaled down his image and it works for him) and I found that too

mastodon/mastodon#2252

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

No branches or pull requests

1 participant