Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported image format when sent from Nheko #197

Closed
MRAAGH opened this issue Mar 20, 2021 · 4 comments
Closed

Unsupported image format when sent from Nheko #197

MRAAGH opened this issue Mar 20, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@MRAAGH
Copy link
Contributor

MRAAGH commented Mar 20, 2021

Description

Image being sent in Nheko:

Image fails to display in Mirage:

Error:

! 17:42:53 | qrc:/src/gui/Pages/Chat/Timeline/EventImage.qml:8:1: QML EventImage: Error decoding: file:///home/maze/.cache/mirage/downloads/fairydust.space/image_SwVTAgtakpBsBtlvKLpAXjRF.jpg: Unsupported image format

This is the file referred to by the error:
https://f.mazie.rocks/image_SwVTAgtakpBsBtlvKLpAXjRF.jpg
This is the image file downloaded by Mirage. But it is not a valid image file.

Notes:

  • images sent from Element display properly in Mirage;
  • images sent by other users using Nheko also fail to display in Mirage but display in Element;
  • I have tried with png and jpg image and neither displayed in Mirage after being sent from Nheko.

Steps to reproduce

  1. Send any image in an encrypted room using the Nheko client
  2. Look at the same room in the Mirage client
  3. Notice that the image does not display
  4. Look at the downloaded file and notice it is not a valid image file

Your environment

  • OS or distribution: Arch Linux
  • Architecture: 64 bit
  • desktop environment or window manager: Awesome wm v4.3
  • How did you install Mirage? yay -S matrix-mirage-git (installed from AUR but from source)
  • Qt version: 5.15.2
  • Python version: 3.9.2

And I installed Nheko with: yay -S nheko-git
and Nheko version is nheko 0.8.1-b31e74d9

@MRAAGH MRAAGH added the bug Something isn't working label Mar 20, 2021
@mirukana
Copy link
Owner

The image I download from your link (tried both browser and wget) is corrupted and not identifiable by any command or client I have, can you reproduce this with images from any other site?

@MRAAGH
Copy link
Contributor Author

MRAAGH commented Mar 30, 2021

Sorry, I was a bit vague there. What I meant is that this is the "image file" downloaded by Mirage and is invalid. Meanwhile the original image that I sent in Nheko is this and it is a valid image.
But this specific image is irrelevant, as the issue happens with any image I receive from Nheko users.

@MRAAGH
Copy link
Contributor Author

MRAAGH commented Oct 1, 2021

This issue does not seem to be happening any more, either it was fixed in Mirage/nio or Nheko changed the format

@MRAAGH
Copy link
Contributor Author

MRAAGH commented Feb 6, 2022

issue no longer occurs

@MRAAGH MRAAGH closed this as completed Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants