attached images cannot be displayed (but can be saved)
See original GitHub issueExpected behavior
After receiving a message with an attached image, I see a line for the attached part (jpg) with two buttons: “Open” and “Save”. Whether or not the image has been downloaded, I expect that pushing “Open” leads to seeing the picture full screen.
Actual behavior
I see a black screen with “No thumbnail” in really really small white type in the middle. The menu shows “Set picture as” and “Print”.
After doing this, or maybe just after downloading, I see a preview in the message. I have done “save” and verified that I can then use gallery to see the image from the sd card.
Steps to reproduce
- Set up openkeychain and generate a key
- get frustrated with clicking on approve for messages signed by weak keys (but not unsigned messages) and set provider to none (I have no idea if 1/2 are necessary; still fails with it turned back on)
- Get an email with an attached image in INBOX. So far any sending MUA works, and in all cases other clients view the image fine.
- Click “open”
Environment
K-9 Mail version: 5.111 (git master 5.111-15-gf388fe4 f388fe41b8992d8f80548e6c8124189895ae81f5)
Android version: CM 13
Account type (IMAP, POP3, WebDAV/Exchange): IMAP
adb logcat
09-27 19:16:55.377 6264-7884/com.fsck.k9.debug E/OpenPgp API: IOException when writing to out
java.io.IOException: write failed: EPIPE (Broken pipe)
at libcore.io.IoBridge.write(IoBridge.java:498)
at java.io.FileOutputStream.write(FileOutputStream.java:186)
at org.openintents.openpgp.util.ParcelFileDescriptorUtil$TransferThread.run(ParcelFileDescriptorUtil.java:78)
Caused by: android.system.ErrnoException: write failed: EPIPE (Broken pipe)
at libcore.io.Posix.writeBytes(Native Method)
at libcore.io.Posix.write(Posix.java:271)
at libcore.io.BlockGuardOs.write(BlockGuardOs.java:313)
at libcore.io.IoBridge.write(IoBridge.java:493)
at java.io.FileOutputStream.write(FileOutputStream.java:186)
at org.openintents.openpgp.util.ParcelFileDescriptorUtil$TransferThread.run(ParcelFileDescriptorUtil.java:78)
p
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (7 by maintainers)
Top Results From Across the Web
The Linked image cannot be displayed error - Outlook
This issue occurs when the BlockHTTPimages registry value is set to 1 and the images in the email message have a source that...
Read more >"The Linked image cannot be displayed" error in an Outlook ...
"The Linked image cannot be displayed " error in an Outlook email messageApplies to: Microsoft Outlook 2010, Outlook 2013, Outlook 2016, ...
Read more >Images not displaying in an email client
Disable image blocking for all messages : · Click Settings gear icon and then click More Settings. · Click "Viewing email." · Under...
Read more >Outlook Does Not Display Images in Email | Windows OS Hub
Outlook has a lot of settings and features, due to which the attached or linked images may not be displayed (loaded) in the...
Read more >Attach photos, files, and more in Notes on Mac - Apple Support
You can attach photos, videos, audio files, and other items to your notes. If you use upgraded iCloud notes or notes stored on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I built from the attachment-ninjabranch fix. Now I can click open on images and it works normally, like it used to. With git master from a few days ago (d0b3caf9768bc6710d9e0702de260a6b73b72995), I still had the bug.
A popular bug on the side of attachment viewer apps seems to be calling InputStream.available() in order to get the content size. For MuPDF I sent a corresponding patch:
http://bugs.ghostscript.com/show_bug.cgi?id=696662
which is merged by now. For my personal MuPDF I also added some intent filters so that I can also view jpg, png, tiff, …