Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Resize images on upload #34

Closed
tswast opened this issue May 19, 2017 · 2 comments
Closed

Resize images on upload #34

tswast opened this issue May 19, 2017 · 2 comments

Comments

@tswast
Copy link

tswast commented May 19, 2017

We're having trouble uploading images to my instance.

image

I believe this is because the image size is too big. The server does not resize images so this needs to be done client-side.

See related issue in Tusky: tuskyapp/Tusky#223

@ReticentJohn
Copy link
Owner

Until clients can know what the server limit is (and it can vary wildly) this is impossible to do client-side. You'll need to make sure your media abides the upload requirements for your instance

@tswast
Copy link
Author

tswast commented May 20, 2017

As far as I know the limits are not configurable. See: mastodon/mastodon#2252 (comment)

ReticentJohn added a commit that referenced this issue Nov 18, 2017
…in size requirements

* This starts with enforcing a max size of 1024x1024, and then converts to a jpeg starting with no compression and compresses by increments of 10% until the max file size is met (8MB)
* This does not apply to video

Signed-off-by: John Gabelmann <john@floof.dog>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants