SVG conversions?
Pages: 1 2
jim lesurf (2082) 1438 posts |
Is there an even ‘almost’ up to date/capable convertor or renderer for SVG files? I’m trying to read and extract info from a site that is riddled with .js (inc Goggle snooping) and which uses SVGs. Neither the version of !NetSurf I have nor an old copy of !SVG can make sense of the SVGs. Which is a pest as the graphs are the main part of the info. I can poke about the page code and save out the SVGs, but then currently need to use a non-RO system to see them properly. PITA. |
Kevin (224) 322 posts |
Imageview can view SVG files and then export them as sprite. |
jim lesurf (2082) 1438 posts |
Thanks for pointing it out. Alas, just fetched a copy, tried it, and it doesn’t work here when I DnD the SVGs I have. Nothing happens. :-/ |
Michael Gerbracht (180) 104 posts |
Have you tried MuView (https://www.riscosports.co.uk/vfp/) it seems to be quite recent and is supposed to view SVGs… Edit: I see it is also from Chris so it may be the same as Imageview but probably still worth a try. |
Kevin (224) 322 posts |
I just double clicked on the svg files and it loaded into ImageView |
Raik (463) 2061 posts |
Same her. The SVG’s I found are working. |
jim lesurf (2082) 1438 posts |
I suspect I’ve just found the cause of the problem by talking to the person who is building the site! The SVG files all/mostly contain (?) ‘animations’ and other effects for interactions. The top page of the site is here: https://headphonetestlab.co.uk/home-welcome It is being built by someone I’ve known for years who is an excellent journalist/writer/etc when it comes to audio. However he is now in practical terms ‘committed’ to the software, etc, he is using to build his site and is part way though putting up a mass of results he has gathered over the years. Alas, he is using a building program rather than doing his own HTML, etc. So uses what it does, and thus also ends up with guff like ‘Google Analytics’ inside the results. I can hack an extractor for the SVG files as I’ve played that sort of game before. But I can’t get !SVG or !NetSurf to show the SVG diagrams which then show the meat of the content. Pity as – for audio enthusiasts etc – it is good info. (?) Not sure if they do, or if that is done by scripting, but it may be that it is in the SVG and this is the stumbling block I hit. |
jim lesurf (2082) 1438 posts |
Just got and tried MuView. Its behaviour differs from !SVG. !SVG just sits on the iconbar and does nowt. !MuView vanishes from the iconbar like a puff of smoke when I DnD one of the SVG files to it.So it does ‘react’, but not in a helpful way! Maybe I’m doing something wrong… |
Rick Murray (539) 13851 posts |
Totally off topic… I looked at the site (in Firefox) and didn’t spot anything looking animated. Hmm. Anyway, this: https://headphonetestlab.co.uk/test-results-manufacturers-a-d-audio-technica-ath-awkt-kokutan Looks like there’s a pretty big dip around 6kHz. That’s around G8. To put it into context, the highest note on a regular piano is C8, so it’s not a frequency unlikely to be heard. |
jim lesurf (2082) 1438 posts |
From what I’ve been told, you should be able to recale and shift the area of view, etc, using the mouse, buttons, etc. But when I try something like a drag select on the visible graphic it pops up another ‘page’. From that, curiously, I get the kind of html ‘index’ page giving links to items in the directory! i.e. what you used to get in ye olde days when ending the address of a URL with a ‘/’ would pop up a list of links if there was no actual index.html page present! So !NetSurf seems to cause this to happen. Odd. e.g. the start page let me get to https://headphonetestlab.co.uk/modal.php?id=media/Audio-Technica/Kokutan/ Note all of that is the URL, not just the bit that presents as the link on the above line. If you click on a diagram you get a bigger version aong with a comment about ‘pan and zoom’ being supported. But that doesn’t work. And the !NetSurf fails to draw the actual graph lines correctly. You do get something, though, wherease !SVG and !MuView give me zilch. |
Raik (463) 2061 posts |
Have try the URL in WIN (Firefox, Explorer) and get more or less nothing (only three “not working links”). |
jim lesurf (2082) 1438 posts |
Raik: I’m not certain which URL you mean, but if it is the one immediately above your posting (above this one) then I get what I’ve screengrabbed here- http://jcgl.orpheusweb.co.uk/temp/htlgrab.png Which seems like a weird problem with his (HTL site builder’s) server or setup. However… The key problem for me, though, is as follows. I can find the SVGs by looking at the HTL page code and its easy to see the way their addresses are parsed, etc. So I can fetch the SVGs as files to examine/use. But: 1) !NetSurf fails to render them correctly. The graphs show no actual meaningful plots. 2) !SVG ignores them. 3) !MyView simply evaporates silently from the IconBar when I try one of the SVG files on that. etc. i.e. I have no way to even see what they should show on RO, even ignoring any ability to ‘zoom’ etc. So we seem to have a general problem with accessing some useful SVGs on RO. I can find older files that work, but not these new ones. |
Raik (463) 2061 posts |
Is the same … |
jim lesurf (2082) 1438 posts |
They are jpegs adorning the page on that particular set of headphones. i.e. they are one of the graphics for the particular page. Being jpegs, no problem seeing them. But they don’t show the results the HTL site offers as they are SVGs. Being able to get them in that way seems a ‘throwback to earlier days’ impying the server will allow people to catalogue content and possibly look for vulnerabilities. I can report it to the author as I know him. But it doesn’t help with the absence of being able to fully render or convert the SVGs which are the real ‘meat’ of the site. So the problem on the RO side is that we lack a modern SVG renderer that can cope. And that in turn means !NetSurf also struggles. |
Andrew Rawnsley (492) 1445 posts |
Although this isn’t super helpful, I can confirm that headphonetestlab works OK in Iris, showing SVG charts correctly, including the zoomed in JS-based image viewer. You can also save the results out, albeit only as a bitmap (sprite). It’d probably also work on OBrowser, Qupzilla or Otter, although I haven’t tried. IIRC you should have access to Iris as I believe you are a ROD supporter, although I don’t intend to put you on the spot! Anyway, I’m intending to get Iris up for all OBrowser supporters by the end of the month. |
Raik (463) 2061 posts |
Mmm, all Browser I have here and try (also Otter for WIN) do nothing or only the “inframe” but no SVG… |
Andrew Rawnsley (492) 1445 posts |
Raik – Jim’s link was all kinds of broken in all browsers/platforms. It’s just wrong. I went to http://headphonetestlab.co.uk/ and read some of the test articles via the drop down menus (eg. Sennheiser, since I’ve heard of them!). Most of them seem to include charts of various kinds, and these are the SVGs. If I try them in Netsurf (copy/pasted URL into Nesurf window from Iris), they “sort of” display as thumbnails, but look broken, as these are “animated” SVGs which seem to also contain interactive elements (unconfirmed). You can click on them for larger versions (javascript-based image viewer). Iris displayed these all correctly, including an animated “plotting” effect (may just have been slow performance) on some of the 3d charts. The javascript viewing system worked, albeit not grease-lightning, but perfectly useable. I then used the save menus to save the visible chart out as a sprite. |
jim lesurf (2082) 1438 posts |
I emailed Keith Howard and the person who is helping him build the site earlier today. He has now altered things a bit so some of what ‘worked’ (wrongly) earlier no longer does so. He had some omissions and errors. e.g. no .htaccess settings to control access. The only RO browser I have apart from !NetSurf is Otter. That shows me the top pages. But I can’t navigate below them because the drop down menu the top pages offer for this don’t work. Couldn’t see any plain ordinary links. The pages are stuffed with scripting rather than plain HTML. |
jim lesurf (2082) 1438 posts |
BTW the link I tried to give yesterday to the example of some AT headphones got ‘broken’ by this forum and loses the end of the URL when it gets presented here as a link. However it’s irrelevant now as the site’s reaction is changed after I emailed the people involved. :-) I’ve known Keith for years as we’ve both been writing for Hi-Fi News and did write a few things together. Alas, he settled on how this site is done and started on it before I knew. Otherwise I’d have campaigned for a rather simpler way to do what he wants so it would be easier to access with more browsers. But now he has done a lot of work I can understand why he doesn’t want to change since for most users it will be fine anyway. Just a pest when using RO at present. That said, the main thing it exposes for me is the lack of a good SVG vector renderer and converter to at least a sensible Drawfile. BTW do the newer browsers let the user hinder Google analytics, etc? i.e. prevent behaviours the user may not want? |
Raik (463) 2061 posts |
Mmm, looks like the SVG are not the problem. More the way to get it. The menu of the website is not usable. Netsurf: Draw Export: So the question is “How can we use sites like this?”. |
jim lesurf (2082) 1438 posts |
You’d have to explain in more detail as I don’t get that here from either the page or saved out SVG files when using !NetSurf to render. Here I get the central box of text, but none of the graphs ‘behind’ them. Also, should the text box cover over the graphs? That looks odd. I’m using !NetSurf on an ARMX6. I can use RPCEmu on Linux, but then I might as well use FireFox! :-) |
Raik (463) 2061 posts |
I haven’t done anything special. Netsurf 3.9, JS disabled. Pick the graphic and save it as draw. |
Andrew Rawnsley (492) 1445 posts |
I got same results as Raik on my ARMX6 when testing, but obviously the large white box shouldn’t be visible (I assume) because it is blocking the view of the chart. |
Leo Smiers (245) 56 posts |
The big box is controlled by javascript. It pops up if you go over the blue icon in the bottom right corner. As you have disabled js the controll of the box is disabled and I guess the netsurf sgv code draws everything. You have to use a browser with js enabled. |
Raik (463) 2061 posts |
Have try any things on MX6. |
Pages: 1 2