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 resizing #677

Closed
1 task done
ieure opened this issue Jun 9, 2018 · 8 comments · Fixed by #686
Closed
1 task done

Image resizing #677

ieure opened this issue Jun 9, 2018 · 8 comments · Fixed by #686

Comments

@ieure
Copy link

ieure commented Jun 9, 2018

When I try to post a toot containing an image, the image upload progress bar gets all the way to the end, then I get the error: "The upload failed."

This appears to be related to mastodon.social limits on image upload sizes. In Mastalab, I can configure it to resize to ex. 2mb, which works (even though it looks awful). Tusky doesn't appear to have a similar setting, and it should. The only way I can post an image with Tusky is to resize it in an image editor, which is so annoying that I just don't post at all.


  • Tusky Version: 1.8.0

  • Android Version: 8.0.0

  • Android Device: Sony Xperia XZ1 Compact

  • Mastodon instance (if applicable): mastodon.social

  • I searched or browsed the repo’s other issues to ensure this is not a duplicate.
    Possibly related: resize image of a post #223

@connyduck
Copy link
Collaborator

Tusky already resizes images that are larger than 8mb, which is the default max image size for Mastodon.
Can you help me investigating this further? What is the exact size of your image? Does it only happen with big images or also with small icons?
I just tested to post with Tusky to mastodon.social on my devices, everything seems fine.

@ieure
Copy link
Author

ieure commented Jun 10, 2018

I've tried a few images. They're coming off the camera on the phone. Sizes of images that failed to post: 4.52mb, 6.74mb, 6.86mb.

I took a screenshot (202kb), and that posted fine.

@connyduck
Copy link
Collaborator

Ahhhh I could reproduce it! Seems that not the filesize is the issue, but there is also a restriction on image dimensions. I will figure out what the limit is and adjust the resizing in Tusky accordingly. Thx for reporting!

@connyduck
Copy link
Collaborator

For the record: The limit is 4096^2 pixels

https://mastodon.social/@Gargron/100185648596501215

@charlag
Copy link
Collaborator

charlag commented Jun 14, 2018

Ah, yes, I totally forgot about it!
It could be nice if we could check it but we will break things like Pleroma a little then?

@connyduck
Copy link
Collaborator

I dont think we can break anything if we downsize more agressive than we do now?

@charlag
Copy link
Collaborator

charlag commented Jun 14, 2018

I thought that he problem is ratio, not the size.

@ieure
Copy link
Author

ieure commented Jun 14, 2018

I thought that he problem is ratio, not the size.

That might be a separate issue, but I'm uploading normal images straight from my camera, so 4:6 or whatever close to rectangular images that produces.

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

Successfully merging a pull request may close this issue.

3 participants