-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Large GIFs are converted to JPEG when sending #5496
Comments
For gifs |
no, it does not do such things, maybe it needs to detect gif and then set the view type to gif |
Yes, that's what i tried to say :) But maybe we should move this detection to the core somehow? Not sure. CC @r10s |
maybe it makes sense to detect gif in core and send it as gif view type instead. or we could do it based on file ending/mimetype in desktop, I think this is possible/reasonable to do before the composer refactoring. |
GIF cannot contain EXIF afaik. so, maybe better try to send them always as is, independent of their size. in contrast to JPG and PNG they are not created by the user during normal usage of their devices, so if they're large, then it's that - similar to video or music files or stickers 1 iirc, the gist was always to let ui set see deltachat-core-rust/src/chat.rs Line 2536 in 8df3b1b
guess_msgtype_from_suffix() converts to GIF - but the recent png-to-jpg conversions (which make totally sense and is a huge improvement, to be clear), are, maybe too greedy and converted GIF as well :)
i was also wondering why android/ios do not have this but - and indeed, they check for the extension/mime-type and set GIF explicitly. still wondering how this is different from core setting "better type" using i think, core should also add some explicit tests. we could then maybe also simplify android/ios code. i would change desktop code here only if fixing in core is too complicated or so tl;dr: i think, it should be fixed in core Footnotes
|
Checked the code, this is actually a core bug introduced when implementing reencoding of large images, i.e. GIFs as well |
Otherwise, e.g. if a message is a large GIF, but its viewtype is set to `Image` by the app, this GIF will be recoded to JPEG to reduce its size. GIFs and other special viewtypes must be always detected and sent as is.
Otherwise, e.g. if a message is a large GIF, but its viewtype is set to `Image` by the app, this GIF will be recoded to JPEG to reduce its size. GIFs and other special viewtypes must be always detected and sent as is.
Otherwise, e.g. if a message is a large GIF, but its viewtype is set to `Image` by the app, this GIF will be recoded to JPEG to reduce its size. GIFs and other special viewtypes must be always detected and sent as is.
Otherwise, e.g. if a message is a large GIF, but its viewtype is set to `Image` by the app, this GIF will be recoded to JPEG to reduce its size. GIFs and other special viewtypes must be always detected and sent as is.
Otherwise, e.g. if a message is a large GIF, but its viewtype is set to `Image` by the app, this GIF will be recoded to JPEG to reduce its size. GIFs and other special viewtypes must be always detected and sent as is.
when I drop a gift to the composer area, or even manually selecting it using the attachment button and then the "image" option, the gift is staged and I can see it is still an animated gif, but when I click the send button, the gif is converted to jpg in the outgoing message, selecting to attach as "file" sends the original gif without converting it, so I guess Desktop is converting images instead of leaving that to Delta Chat core!?
Specs:
this is the gif file I tried:
The text was updated successfully, but these errors were encountered: