simplex-chat / simplex-chat/simplex-chat

Problems using ‘/image’ to send AVIF, PNG, and WebP images

Open
#924 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Haskell
Stars
19.5k
Forks
1.4k
Avg merge
1d 20h
Merged PRs (30d)
71

Description

I attempted to send the same image as AVIF, JPEG, PNG and WebP from the desktop app using the /image command. Only the JPEG image was sent. For the AVIF, PNG and WebP formats SimpleX said:

max image size: 236700 bytes, resize it or send as a file using /f

although the sizes were 9,251 bytes, 68,929 bytes and 9,738 bytes respectively.

I could send the images with the /file command, but then they wouldn't show up inline in the mobile app — not even the PNG. Instead they would just be available for download, with no indication that they were image files.

I was using SimpleX v3.1 as desktop app and mobile app. The mobile is fairly recent and was able to display all the mentioned image formats inline in other apps.

I've attached all images in a gzipped tarball as Microsoft Giðub supports neither WebP, nor AVIF upload.

📎 www_karussel_ventetider.tar.gz

Edit: typo

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

Start by reproducing the reported behavior in the desktop and mobile apps with the attached AVIF, PNG, JPEG, and WebP images, using both /image and /file. Check how each command handles image size and inline rendering. Done means supported images are accepted through /image and images sent with /file are identified and displayed inline where supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
desktop-dev, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.