Rocket.chat: TIFF image uploads are not rendered on preview or gallery

Created on 6 Jun 2018  路  10Comments  路  Source: RocketChat/Rocket.Chat

Description:

Server Setup Information:

Rocket.Chat (docker:latest)

| Version | 0.65.1 |
| ----------------------- | --------------------------------------------------------- |
| Database Migration | 121 |
| Database Migration Date | Sat Jun 02 2018 09:43:00 GMT-0500 (Central Daylight Time) |
| Installed at | Mon Jan 29 2018 11:26:38 GMT-0600 (Central Standard Time) |
| Uptime | 3 days, 23 hours, 18 seconds |
| Deployment ID | TcqCjYQpABoBFaoYr |
| PID | 1 |
| Running Instances | 1 |
| OpLog | Enabled |

Commit

| Hash | 8349c36de01e14503bcdbc5d382b124568959de9 |
| ------- | -------------------------------------------------------- |
| Date | Wed May 30 09:57:01 2018 -0300 |
| Branch | HEAD |
| Tag | 0.65.1 |
| Author | Diego Sampaio |
| Subject | Merge pull request #10947 from RocketChat/release-0.65.1 |

Steps to Reproduce:

  1. Upload an image in a conversation.
  2. Look at displayed thumbnail.

Expected behavior:

Previous behavior was a reasonably-scaled thumbnail of the image, which when clicked, would open up to a larger version popup.

Actual behavior:

One of two things happens:

  • A very small thumbnail is generated, that when clicked shows the exact same size (which is worthlessly small).
  • No thumbnail is generated at all and a massive preview of the image (if high-res) is shown in the conversation.

Screenshots:

(Some data pixelated for privacy).
image
image
image

bug

Most helpful comment

Got you. Since I am on docker, it seems the latest available there is 8349c36 from May 30th. Will await release there.

All 10 comments

Second part (large images) is a duplicate of #10980 and #11013 and is already fixed in PR #10998

Got you. Since I am on docker, it seems the latest available there is 8349c36 from May 30th. Will await release there.

Updated my home docker container to 0.66.0-develop (5565503). It is as you say with the large image issue fixed. I believe the first issue is limited to TIF files (as the one in my example is a tif document). I converted the same file to jpg and png, and it worked fine.

Can you provide a sample TIF file to test with @bkraul?

20180605_194837.zip

GitHub would not let me attach TIF.

@ggazzo was this fixed already?

have you guys tested on the latest version?

Tested on 0.67.0-develop (c37a90....). Now there is not even a thumbnail showing. Just the following:
image
The file can be downloaded, though, and it previews in Windows.

alright.. so it's an issue with TIFF files.. I've confirmed it. I'll update the title accordingly.. thx

Originally it was an issue with all images, which was fixed in the develop branch, but the TIFF issue remained, so good call.

Rocket Chat 3.1.1
The problem with previewing TIFF remained.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danpospisil picture danpospisil  路  3Comments

antn89 picture antn89  路  3Comments

lunitic picture lunitic  路  3Comments

djeber picture djeber  路  3Comments

brendanheywood picture brendanheywood  路  3Comments