RocketChat / RocketChat/Rocket.Chat
Problem with gif size since 3.17.0
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 46.1k
- Forks
- 13.9k
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 130
Description
Description:
Since 3.17.0, gifs uploaded via giphy have their size stretched, as you can see:

If I add this gif or any image via the "plus"button, it works correctly.
This problem also occured with a custom integration with the following script:
process_outgoing_response({ request, response }) {
let gif = '';
if(response.content.data.length !== 0) {
if(Array.isArray(response.content.data)) {
const count = response.content.data.length - 1;
const i = Math.floor((Math.random() * Math.min(count, config.range) ));
gif = response.content.data[i].images.original.url;
} else {
gif = response.content.data.image_original_url;
}
return {
content: {
attachments: [
{
title: "Gify",
image_url: gif,
color: ((config['color'] != '') ? '#' + config['color'].replace('#', '') : '#225159')
}
]
}
};
...
Thanks for your help.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the stretched GIF with a Giphy attachment and compare it with an image inserted through the plus button. Trace the attachment data returned by process_outgoing_response, especially image_url, through the message display path. Done means both integration and manually added GIFs preserve their intended dimensions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100