Open alfonsrv opened 4 years ago
@alfonsrv @timabbott can you help me reproduce this bug as this seems to be working fine with me. Uploaded GIFs do not show any black background.
@akshatdalton What I do is:
akshat1
and upload. In the preview pane you should now see the same result as shown above. Not sure what you're doing, but this clearly doesn't seem like an upload to Zulip, as it would cut off the sides of the Nice-GIF in the current way Zulip handles GIF conversion, as outlined above.
I am working on this issue.
Several classes of this form of issue were fixed in https://github.com/zulip/zulip/pull/16456 thanks to excellent work by @codypiersall; the remaining ones appear to be an upstream PIL bug (which we should link here once it's filed).
As per #10351, the error still occurs with Zulip 3.2. Uploading custom emojis GIFs results in unexpected behavior. Turning on or off the
optimize=
flag does not change anything about it.Example: uploading a Giphy sticker, mostly results in a black background – here, on the official Zulip server.
, ref
Side note: It would also be nice if extra padding was added to the top and bottom to convert the image to 1:1 ratio rather than cut it off.
Another artifact I encountered was uploading another sticker, resulting in not only a black background but also some other artifacts.
, ref