-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Issue with uploading HEIC from Samsung phones #23588
Comments
I can reproduce this with any HEIC file, not sure why this is happening, but I'm investigating. |
So, I'm pretty sure your version of ImageMagick does not handle HEIC, you can check with The |
The admin says they're using the docker image from https://hub.docker.com/r/tootsuite/mastodon Does this help?
|
We see the same problem here with the same output from convert like in the comment above.
|
Interestingly looking at a machine that can process those HEIC file, I get :
(i.e. one more line). Note this is just my laptop |
first, I test ImageMagick. Dockerfile
create image.
test script.
running test.
Maybe it's not problem of ImageMagick. NotIdentifiedByImageMagickError is raised from mastodon's |
then I test FastImage
Gemfile
test.rb
result
it's FastImage 's problem. sample HEIC file. |
This is still occurring and happens whenever trying to upload an image from my iPhone without explicitly choosing to convert it to a JPG from iOS' built-in photo picker. Looking at the actual response, this is what I get back any time I accidentally try uploading an HEIC directly:
|
FYI in case someone ends up googling this thread since sdsykes/fastimage#140 has been merged already once a new release of Fastimage is done this will be fixed in Mastodon. I have git's version in my server and is working flawlessly with Samsun's heic. |
This should be fixed by #28488. |
Sadly, the issue reappeared in 4.2.8 when trying to upload a .heic image created by a Samsung S23 Ultra through a computer.
|
This has not made its way to a Mastodon release yet, so the issue has not reappeared, it wasn't gone to begin with. |
sad 😢 |
Steps to reproduce the problem
Upload a HEIC file from Samsung S22
Expected behaviour
Upload should succeed
Actual behaviour
500 error
Detailed description
The HEIC file causing the error can be found in the attached zip file
20230211_112032.heic.zip
Error message as follows:
Specifications
Mastodon v4.1.0
The text was updated successfully, but these errors were encountered: