RocketChat / RocketChat/Rocket.Chat

The attached base64 image is of low quality and low resolution.

Open
#24,699 0 comments 1 reaction 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

How to reproduce
  • Uploading the image from the RN app
  • From the admin back-office I see the correct image
  • When the server returns the message list the body looks like this and the preview of the base64 image is tiny.

"image_dimensions":{"width":960,"height":1280},"image_preview":"/9j/2wBDAAYEBQYFBAYGBQYHBwYIChAKCgkJChQODwwQFxQYGBcUFhYaHSUfGhsjHBYWICwgIyYnKSopGR8tMC0oMCUoKSj/2wBDAQcHBwoIChMKChMoGhYaKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/wAARCAAgABgDASIAAhEBAxEB/8QAGgAAAgIDAAAAAAAAAAAAAAAAAAcFBgECA//EACYQAAEEAQMCBwEAAAAAAAAAAAEAAgMEEQUSIQZBByIjJTFCUWH/xAAXAQADAQAAAAAAAAAAAAAAAAAAAQQC/8QAHBEAAgMAAwEAAAAAAAAAAAAAAAECESEDEjFB/9oADAMBAAIRAxEAPwCxdW6U/RqTrNxoEWcbgl3ZnZYy+Llv6m/4wyC10ZYEYO4HICRFR0rdBbI3h27BULhtIrU6Vs2sPY1xyQhQd+R20OySSUJy43HAjyKWjx6u1atb050DbL5Q/gjGFQJalatRfFBIZWE5I7hRt/VnvG0ynH41Rb9VfCfT4P8Ae611sVpGLlWsfM1x47FC71fdGEyQ7CPsPgoR56PPh//Z"

Version Rocket.chat

4.5.0

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

No source file or test is named. Start by reproducing the RN upload and inspecting the server response for the message list, then trace where the base64 image preview and its dimensions are produced. Done means the returned preview is no longer tiny or low quality while the reported 960×1280 dimensions remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
api, backend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.