RocketChat / RocketChat/Rocket.Chat

Pasted images from Windows 10 Snip & Sketch sent as blank when viewed on Android

Open
#18,664 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

When Snip and Sketch is used in Windows 10 to copy from the desktop, and pasted into the web UI, the image is sent, but when viewed on the Android app, it's a blank box. Tapping the image is also blank. This is using Firefox 79 and Chrome (latest).

Steps to reproduce:
  1. Launch Windows 10 snip and sketch
  2. Select something on screen (it will auto-copy to clipboard)
  3. Paste the image in the web UI and send. It shows correctly in web UI.
  4. View the same chat on the Android app and it will appear blank
Expected behavior:

The image is shown on both the web UI as well as the Android app

Actual behavior:

Web UI:
image

Android app:
Screenshot_20200824-145758_RocketChat

Server Setup Information:
  • Version of Rocket.Chat Server: 3.5.3
  • Operating System: Ubuntu 18
  • Deployment Method: tar
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version: latest?
Client Setup Information
  • Desktop App or Browser Version: Web UI
  • Operating System: Windows/Android 9
Additional context

The pasted image is a PNG, but copying in a sending a PNG file (not a copy) sends fine and shows in Android as well. It appears to only be for pasted images from Windows. I have not tested other snipping tools. I'm using the file system for storage.

Relevant logs:

No log data

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue by pasting a Windows 10 Snip & Sketch PNG through the web UI, then viewing it in Android. Trace the pasted-image upload and Android image-display paths, comparing them with a normally attached PNG; done means the pasted image renders correctly in both clients.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.