android-app
android-app copied to clipboard
It cant load svg images?
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
Can you please provide an example article?
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
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.
Indeed, same for me. Do you have an png or svg picture inside your article in the web interface ?
@gerroon do you still experience the problem?
Please reopen if you can reproduce the problem.
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...
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. [] []
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