Skip to content
New issue

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

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

Already on GitHub? # to your account

Error: Corrupted file or unsupported file type when copy/pasting an image #132

Open
iusdfbuisdbfuoduiofwefhwen89w opened this issue Dec 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@iusdfbuisdbfuoduiofwefhwen89w

When I try to copy/paste an image I get the corrupt file error, but when I click the "Post from URL" button and manually paste in a URL to the image it posts just fine.
Copy pasting works with most images but some get the corrupt image error for some reason. Right now specifically it is happening with this one: https://staticg.sportskeeda.com/editor/2022/08/d25bf-16611967757011-1920.jpg
I am using Librewolf and Violentmonkey. I have like 20 addons, but I disabled them all except for Violentmonkey and tried to post but it still didn't work.

@TuxedoTako
Copy link
Owner

Looks like this is related to librewolfs very aggressive fingerprint resistense: https://librewolf.net/docs/faq/#why-am-i-seeing-striped-images. When you copy an image from the clipboard, it's inserted as a PNG, which in this case is over the file limit. This triggers XT's automatic conversion, which uses the browsers build in canvas functionality to convert to jpeg. It might be related to https://codeberg.org/librewolf/issues/issues/1509 and https://bugzilla.mozilla.org/show_bug.cgi?id=1422862, but I'm not sure.

This issue is specific to librewolf. The image works in edge and vanilla firefox.

@TuxedoTako TuxedoTako added the bug Something isn't working label Dec 26, 2024
@iusdfbuisdbfuoduiofwefhwen89w
Copy link
Author

I'm dumb and can't get it working no matter what settings I change. Although I can get a proper thumbnail instead of a broken image in the reply box now.
image
Anyway it's not a big issue i'll just manually do the link for the rare images that don't work from now on. You can close this thread if you like.

@TuxedoTako
Copy link
Owner

To me it looks like a LibreWolf bug. I posted a minimal reproduction on their issue tracker: https://codeberg.org/librewolf/issues/issues/2174.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants