XML incompatibility, SnipSVG being unstable, and styles on the HEAD section

Discussion and support for the SnipSVG screen capture and graphics editing tool

Moderators: Alexander Halser, Tim Green

User avatar
Tim Green
Site Admin
Posts: 23351
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: XML incompatibility, SnipSVG being unstable, and styles on the HEAD section

Unread post by Tim Green »

Hi Gianni,

Thanks for reporting this, I can reproduce it on a MacBook Pro with M3 Max. The first time it happens it gets triggered if you resize quickly. After that it happens more easily. We're looking into it.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
gianniangelini
Posts: 13
Joined: Thu Sep 05, 2024 12:05 pm

Re: XML incompatibility, SnipSVG being unstable, and styles on the HEAD section

Unread post by gianniangelini »

Hi,

just adding a piece of information that can maybe be useful to know...

I asked a colleague to test the app on a Windows laptop, and she had no issues at all. Is maybe something related to the Mac's version only?? Do you want me to run specific tests on my Mac?

Thanks!
User avatar
Tim Green
Site Admin
Posts: 23351
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: XML incompatibility, SnipSVG being unstable, and styles on the HEAD section

Unread post by Tim Green »

gianniangelini wrote: Mon Oct 21, 2024 9:58 am I asked a colleague to test the app on a Windows laptop, and she had no issues at all. Is maybe something related to the Mac's version only?? Do you want me to run specific tests on my Mac?
No, that's OK, we are already working on it. The Mac systems the developers were testing on are older and slower M1 systems, and the resize error you are seeing wasn't happening there, but I can reproduce it on my M3 Max MacBook Pro. So it appears to be a timing issue. There is also a compatibility issue with Sequoia that needs to be addressed. We are working on both issues and an update will be coming soon.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
User avatar
Alexander Halser
EC-Software Support
Posts: 4131
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: XML incompatibility, SnipSVG being unstable, and styles on the HEAD section

Unread post by Alexander Halser »

Hi Gianni,
Please give this updated (beta) version a test run:

https://www.helpandmanual.com/download/snipsvg-v150.dmg

The resize error should be gone. If it still persists on your machine, we'd like to know a.s.a.p.
Alexander Halser
Senior Software Architect, EC Software GmbH
gianniangelini
Posts: 13
Joined: Thu Sep 05, 2024 12:05 pm

Re: XML incompatibility, SnipSVG being unstable, and styles on the HEAD section

Unread post by gianniangelini »

Hi!

I've just tested this last version. It works flawlessly now! I've resized, typed text, added colors etc., no issues.
I'll use it in production as much as possible, and keep you posted if I find anything else of interest.
Thank you so much!

As a side note, I've deleted the <style> section from the head of the XML code, just to see what happens, and I noticed that the file still shows up complete in SnipSVG, while it's not fully displayed in the browser (see screenshot). You know I'm a bit fixated with "clean code", and I would like to see all styles inline for compatibility... so I'm just wondering, if your code can display an image in SnipSVG without the style section in the header, why not getting rid of it altogether? Wouldn't it be a positive in the long term? Just contributing ideas, you go your way, of course...

Thanks again for all your hard work, and for your ready support! Much appreciated!!
You do not have the required permissions to view the files attached to this post.
User avatar
Alexander Halser
EC-Software Support
Posts: 4131
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: XML incompatibility, SnipSVG being unstable, and styles on the HEAD section

Unread post by Alexander Halser »

deleted the <style> section from the head of the XML code, just to see what happens
I suggest to keep it, it's there for a reason :D
Alexander Halser
Senior Software Architect, EC Software GmbH
gianniangelini
Posts: 13
Joined: Thu Sep 05, 2024 12:05 pm

Re: XML incompatibility, SnipSVG being unstable, and styles on the HEAD section

Unread post by gianniangelini »

Hi,

some more issues... (version 1.5.400)

1) I tried to type hex code for a color... I can't. Are color code fields read only? (see screenshot_1.png) If yes, is that possible to make them editable? I had to type an hex color code manually into the XML code...
2) Again issues with visualizing text on SVG: see screenshot_2).

File code:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--____ Made_with _____ _______
/ __/__ (_)__ / __/ | / / ___/
_\ \/ _ \/ / _ \_\ \ | |/ / (_ /
/___/_//_/_/ .__/___/ |___/\___/
/_/ http://snipsvg.com -->
<svg width="800" height="600" viewBox="0 0 800 600" role="img"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xpl="http://www.helpxplain.com/namespaces/xplain"
version="1.1">
<style>
a { color: #0070C0 }
body {
margin: 0;
padding: 0;
}
p {
line-height: 1.2em;
margin: 0;
padding: 0;
}
h1,h2,h3 {
line-height: 1.2em;
margin: 0 0 0.5em 0;
padding: 0;
}
ul {
margin-top: 0; margin-bottom: 0;
}
ol {
margin-top: 0; margin-bottom: 0;
}
li {
line-height: 1.2em;
}
</style>
<g id="shape1" class="xplitem shape" transform="translate(317.7,185.45)" style="--xpl-w:170.32;--xpl-h:170.32;--xpl-valign:middle;">
<ellipse fill="#F6FFF4" fill-rule="evenodd" stroke-width="2" stroke="#000000" cx="85.16" cy="85.16" rx="84.16" ry="84.16"></ellipse>
<switch>
<foreignObject x="20" y="6.66" width="130.32" height="157"><body xmlns="http://www.w3.org/1999/xhtml"><p style="text-align:center;font-family:Arial;font-size:36px"><span style="font-size:128px">i</span></p></body></foreignObject>
<g style="font-family:Arial, Helvetica, sans-serif;font-size:128px;fill:#000000;text-anchor:middle;--xpl-margins:18,0,18,0;"><text x="85.16" y="134.66" dy="-0.12em">i</text></g>
</switch>
</g>
</svg>

Thanks!
You do not have the required permissions to view the files attached to this post.
User avatar
Alexander Halser
EC-Software Support
Posts: 4131
Joined: Mon Jun 24, 2002 7:24 pm
Location: Salzburg, Austria
Contact:

Re: XML incompatibility, SnipSVG being unstable, and styles on the HEAD section

Unread post by Alexander Halser »

The hex field is read-only.

As for the text glitch: this is the same error as before. In version 1.5 this is fixed already. Did you create this object with an older version? Or was the object copied from an file created with an older version? Or was the object copied from the favorites gallery? It must be something like that. Same cure as before for existing objects: apply a different font size, then reapply the old one.
Alexander Halser
Senior Software Architect, EC Software GmbH
Post Reply