Bug 446092 - Inline images using http URL don't display in rendered document
Summary: Inline images using http URL don't display in rendered document
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: markdown backend (show other bugs)
Version: 21.04.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-26 00:00 UTC by Mathieu Jobin
Modified: 2021-11-28 18:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
markdown in kate with okular preview (389.22 KB, image/png)
2021-11-26 00:00 UTC, Mathieu Jobin
Details
Simple test file that reproduces the bug (102 bytes, text/markdown)
2021-11-26 17:08 UTC, Paul Worrall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathieu Jobin 2021-11-26 00:00:49 UTC
Created attachment 143950 [details]
markdown in kate with okular preview

SUMMARY

Markdown allow to embed images in document, it works very much like a link

[link text](https://image/link.png)
![embedded image](https://image/link.png)

STEPS TO REPRODUCE
1. Create a markdown with the above content.
2. load the file in Okular or Kate preview
3. embedded images should load from https, base64 or local file path

![img](!https://imgs.xkcd.com/comics/standards.png)

![Hello World](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAAUCAAAAAAVAxSkAAABrUlEQVQ4y+3TPUvDQBgH8OdDOGa+oUMgk2MpdHIIgpSUiqC0OKirgxYX8QVFRQRpBRF8KShqLbgIYkUEteCgFVuqUEVxEIkvJFhae3m8S2KbSkcFBw9yHP88+eXucgH8kQZ/jSm4VDaIy9RKCpKac9NKgU4uEJNwhHhK3qvPBVO8rxRWmFXPF+NSM1KVMbwriAMwhDgVcrxeMZm85GR0PhvGJAAmyozJsbsxgNEir4iEjIK0SYqGd8sOR3rJAGN2BCEkOxhxMhpd8Mk0CXtZacxi1hr20mI/rzgnxayoidevcGuHXTC/q6QuYSMt1jC+gBIiMg12v2vb5NlklChiWnhmFZpwvxDGzuUzV8kOg+N8UUvNBp64vy9q3UN7gDXhwWLY2nMC3zRDibfsY7wjEkY79CdMZhrxSqqzxf4ZRPXwzWJirMicDa5KwiPeARygHXKNMQHEy3rMopDR20XNZGbJzUtrwDC/KshlLDWyqdmhxZzCsdYmf2fWZPoxCEDyfIvdtNQH0PRkH6Q51g8rFO3Qzxh2LbItcDCOpmuOsV7ntNaERe3v/lP/zO8yn4N+yNPrekmPAAAAAElFTkSuQmCC)
![shrooms](~/Pictures/japan-magic-mushrooms.jpg)

OBSERVED RESULT
a white space is generated, image is not shown

EXPECTED RESULT
see images in rendered doc

SOFTWARE/OS VERSIONS
Operating System: Ubuntu 21.04
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.11.0-40-generic
OS Type: 64-bit
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 19.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 1 Paul Worrall 2021-11-26 17:08:16 UTC
Created attachment 143972 [details]
Simple test file that reproduces the bug

Confirmed with attached simple test file

Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-40-generic (64-bit)
Graphics Platform: Wayland
Processors: 2 × AMD A6-6400K APU with Radeon(tm) HD Graphics
Memory: 7.7 GiB of RAM
Graphics Processor: AMD CEDAR
Comment 2 Laura David Hurka 2021-11-27 13:01:22 UTC
Is this bug report about data URLs or about HTTP URLs now?
Comment 3 Paul Worrall 2021-11-28 18:24:05 UTC
Local file system URLs (e.g. "/home/user/test.jpg") work OK in my tests, http and https don't, I haven't tried any other remote URLs.