android-app icon indicating copy to clipboard operation
android-app copied to clipboard

It cant load svg images?

Open gerroon opened this issue 8 years ago • 9 comments

Hi

I added a WIkipedia entry to Wallabag v2. The article looks fine with the svg image in the browser but the image is missing with a broken rectangle in the app window.

thanks

gerroon avatar May 24 '16 03:05 gerroon

Can you please provide an example article?

Strubbl avatar May 24 '16 17:05 Strubbl

Try this one https://en.wikipedia.org/wiki/Multiverse

See if you can see "https://en.wikipedia.org/wiki/Multiverse#/media/File:Multiverse_-_level_II.svg" in the app. It shows up in the wallabag server page

gerroon avatar May 24 '16 18:05 gerroon

Wallabag v2 shows https://upload.wikimedia.org/wikipedia/commons/thumb/3/34/Multiverse_-level_II.svg/220px-Multiverse-level_II.svg.png, the app works fine with it. Wallabag v1.9 shows https://wallabagserver/assets/123/220px-Multiverse-_level_II.svg.png, which also should be fine in the app.

di72nn avatar May 24 '16 20:05 di72nn

Indeed, same for me. Do you have an png or svg picture inside your article in the web interface ?

tcitworld avatar May 25 '16 18:05 tcitworld

@gerroon do you still experience the problem?

di72nn avatar Sep 30 '16 18:09 di72nn

Please reopen if you can reproduce the problem.

di72nn avatar Nov 30 '16 10:11 di72nn

I'm running Wallabag from the most recent Docker image. The aforementioned wikipedia article imports an png version of the image, and when I try to import this page http://www.lighterra.com/papers/modernmicroprocessors/, all svg images are missing. So there still seems to be an issue...

Skyr avatar Oct 19 '18 06:10 Skyr

i have the same problem, but the image doesnt show up at all with https://lwn.net/SubscriberLink/798258/e9f092b0169751a8/

[2019-09-05 19:42:57] graby.INFO: Filtering HTML to remove XSS [] []
[2019-09-05 19:42:57] app.DEBUG: DownloadImages: Folder used for that Entry id {"folder":"/home/sztanpet/wallabag/web/assets/images/9/8/98668cc2","entryId":2253} []
[2019-09-05 19:42:57] app.DEBUG: DownloadImages: working on image: https://static.lwn.net/images/2019/borkman-key.svg [] []
[2019-09-05 19:42:58] app.DEBUG: DownloadImages: Checking extension {"ext":"svg","header":"image/svg+xml"} []
[2019-09-05 19:42:58] app.ERROR: DownloadImages: Processed image with not allowed extension. Skipping: https://static.lwn.net/images/2019/borkman-key.svg [] []
[2019-09-05 19:42:58] app.ERROR: DownloadImages: Error while regenerating image {"path":"/home/sztanpet/wallabag/web/assets/images/9/8/98668cc2/74fc250a."} []
[2019-09-05 19:42:58] app.DEBUG: DownloadImagesSubscriber: updated html. [] []

sztanpet avatar Sep 05 '19 17:09 sztanpet

Thanks for the log. This looks like an issue with wallabag server and not the app. Which wallabag version are you using?

Also, the link you provided has no SVG image in the article. At least i cannot not find the image, which wallabag wants to fetch in the LWN article.

If you can provide the LWN link where that SVG is not cached and you are using the latest wallabag release, we can reopen https://github.com/wallabag/wallabag/issues/3253

Strubbl avatar Sep 07 '19 10:09 Strubbl