Signal-iOS icon indicating copy to clipboard operation
Signal-iOS copied to clipboard

Signal iOS Does not Properly Display Images with missing/incorrect extensions

Open gfs opened this issue 6 years ago • 12 comments

  • [ x ] I have searched open and closed issues for duplicates
  • [ x ] I am submitting a bug report for existing functionality that does not work as intended
  • [ x ] I have read https://github.com/signalapp/Signal-Android/wiki/Submitting-useful-bug-reports
  • [ x ] This isn't a feature request or a discussion topic

Bug description

When I share a screenshot that has been cropped on my OnePlus 7 Pro using signal the recipients on iOS cannot view it.

Steps to reproduce

  • Create a group chat with a OnePlus device, another android device, and an iOS Device. Take a screenshot, crop it in the default screenshot editor, and send it to the group message.

Actual result: Image displays properly on my end and for other android users, iOS Recipient receives an image they can't view labeled as a "bin" file Expected result: iOS Recipients can also view the screenshots.

Screenshots

iosbug androidview

Device info

Device: iPhone SE iOS version: 13.3.1 Signal version: 3.5.1.0

Link to debug log

gfs avatar Mar 05 '20 20:03 gfs

https://debuglogs.org/48e125916b77eefa7700f28c2d725ec74029572a1c97da0e82da416ecdaaf75a.zip

gfs avatar Mar 05 '20 20:03 gfs

This stopped happening for a while, but is happening again now for me. I'm using Beta on Android to send, and my iOS non beta friend cannot receive the images, and the beta desktop client gets this:

image

This only happens on screenshots and other messaging clients cope with them fine (conversations, WhatsApp).

Anything I can do to help research this one?

tobybryans avatar Oct 16 '20 10:10 tobybryans

A follow up here. I think I've identified a discrepancy. If you take a screenshot on a OnePlus phone and crop it, and then share directly from the crop menu you will not be able to share. The workaround is to finish your crop, and then click save, and then share the saved image from your camera roll.

gfs avatar Oct 17 '20 18:10 gfs

I can also repro this on Signal Desktop

Here is a sample file. Note that the file name in Signal was signal-2020-10-17-114550.* I had to rename it in order to upload it to github to .png. To test it exactly how it was downloaded from signal remove the .png extension. signal-2020-10-17-114550 *

If you send this file named signal-2020-10-17-114550.* signal Desktop will display it as the dot type file above in @tobybryans's screenshot. If you send it but name it .png it will be rendered correctly by Signal Desktop.

This appears to be a difference in how Signal Desktop, SIgnal iOS and SIgnal Android parse data types. It appears that Signal Desktop and iOS both appear to rely on the extention being a valid one that they can see. It doesn't appear to matter if the extension is correct. You can see this by sharing the above image as both a .png and a .jpeg without changing their content of the file.

It would appear that OnePlus's screenshot app doesn't append an extension to the file name if you share directly from the screenshot/crop UI menu. This is handled fine on android but not on other platforms.

The workaround on OnePlus phones to be able to share your screenshots is to be sure to save the image to your device after cropping using the checkmark button. That will save the file as .jpg and you will be able to share it in Signal.

The bug here in Signal seems to be relying on file extensions instead of checking for file headers in iOS and Desktop, whereas Android properly handles "unknown" extension types.

gfs avatar Oct 17 '20 18:10 gfs

Screenshot sharing from oneplus Still an issue. Some videos are also not downloading.

ajeesh1987 avatar Jan 16 '21 11:01 ajeesh1987

Same issue here with a OnePlus 7 on sending and iPhone / Signal Desktop on the receiving side. Saving the file to gallery didn't help though.

ztNFny avatar Feb 10 '21 17:02 ztNFny

Hello there, this bug is not fixed. Do we know if it'll be fixed in futur update ?

MathieM avatar Mar 05 '21 11:03 MathieM

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Jan 24 '22 01:01 stale[bot]

Still therr

ztNFny avatar Jan 24 '22 06:01 ztNFny

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Mar 25 '22 07:03 stale[bot]

This is still relevant, stop spamming Stale-bot!

NiklasBr avatar Mar 25 '22 08:03 NiklasBr

WTF

NiklasBr avatar Apr 01 '22 09:04 NiklasBr