Welcome to TalkGraphics.com
Results 1 to 10 of 35

Hybrid View

  1. #1
    Join Date
    May 2001
    Location
    Dundee, Scotland, UK
    Posts
    1,081

    Default Re: XD16, and XD17 trial SVG import issue

    Hi, Egg, it's been a very long time. Yes, I suspected the 72/96px ratio too, but that must be an internal Xara thing because Xara exports its SVG specifying pt (points) as the unit. It doesn't permit you a choice. But unlike pixels, it is a real-world unit that is accepted the world over as 1/72 of an inch so there is no real room for ambiguity. XD16/17 cannot import its own SVG exports correctly, and 25% is a huge error. The issue is a bit more complicated because having imported the SVG-1 back into Xara, you can then export that 2nd image as SVG-2, and re-importing SVG-2 does NOT increase its size. Only the first re-import increased in size.

    Also, though I took no screen shots, I imported the Xara SVG-1 into three different apps, and they all showed the counter at the correct size, and they all could re-export/save as their own SVG, and correctly re-import those without issue. Even if they had their own issues, (I'm still working on SVGKam ) Xara has a clear problem. The 72/96px/" shouldn't be relevant unless Xara invokes an erroneous conversion somewhere, but I find that hard to believe, as Xara's own internal unit is the millipoint, 1/72000", which is why it is brilliant for engineering drawings. And because it always exports in pt and never px, other apps importing them never get confused about sizing, which has been an issue dogging the maker community because pixel-based SVGs routinely confuse many precisely because the px isn't a clearly-defined real-world unit of measurement, and really has no business being treated like an engineering unit. And it's not helped when apps that can export/import SVGs often don't allow the user to choose the export unit, and they default to px.

    Also, Hi, ss-kalm, it's nice that there are so many familiar names still around. And I was sad when I found out that Soquili is no longer with us. I peek in now and again, but whole years can go by in between.

    Cheers, all.
    Mike

  2. #2
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,382

    Default Re: XD16, and XD17 trial SVG import issue

    I looked at this with P&G16 - my experience was that the reimported svg was at a fixed size - that is it reimported at that same size even from a rexport of the object at a different size

    it did not happen in XDP15.1

    ther has been a change from 15 to 16/17 in that the program now allows you to export 'selection only' as opposed to 'whole page' [all objects] only - it may be linked to this, but obviously it is wrong [unless it is Xara doing something 'smart' for the web and screwing up the non-web yet again]
    -------------------------------
    Nothing lasts forever...

  3. #3
    Join Date
    May 2001
    Location
    Dundee, Scotland, UK
    Posts
    1,081

    Default Re: XD16, and XD17 trial SVG import issue

    Hi, handrawn!

    P&G16 can re-import at the same size, it didn't change the size of the SVG-2 even after re-exporting it again, and importing it back in. Also P&G16 didn't initially have 'export selection only', that came in a later patch, which I liked, but it was upsetting my exports that I had just got used to, so I re-installed the earlier version to maintain consistency, and my update facility has expired. I can opt back in before Friday and get P&G17 at a well-reduced cost, and I'm going to do that, but I am disappointed that SVG import/export appears to be so inconsistently managed.

    In P&G17 importing an SVG results in a clipview of the imported objects, even if no viewBox parameters were present in it. That doesn't seem right, and P&G16 only used clipview when the viewBox was present. Because I am updating an open-source CAM prog at the moment (a very LOOOOONG moment ), which is SVG-based, one of the things I am correcting is its own SVG export facility as it has its own issues, and so I have been doing a lot of testing with it. I was expecting that Xara with its very long pedigree in vector-based drawing would be pretty much pitch-perfect on SVG import/export, and I have to say I'm pretty disappointed that it has been having these issues.

    The viewBox settings if present in an SVG file is a clipview/zoom-level combo facility, and is optional, it doesn't have to be present. But that isn't behind P&G16/17's issue, because it still enlarges my ship counter if the viewBox is absent, which means explicitly no scaling, and even if it is present, if the viewBox width and height match the document (viewport) width and height, scaling is 1:1 anyway, ie no change.

    I have also now found the opposite problem, where a collection of ship counters exported as SVG from my CAM prog is about 23.5cm across, but when imported into P&G16 it is scaled down to about 7.6cm across! Inkscape imports it correctly, and so does P&G11.

    If I import it into P&G17, I see nothing but I am told there is a clipview object. If I remove the clipview and give the clip rectangle (actually it was unclosed and P&G17 reports it as a line) a line thickness to make it visible, the collection appears outside the clip rectangle, which is why it was invisible. And it is also only about 7.6cm across, not 23.5cm.

    I am wondering if this is related to the treatment imported photos are given, whereby they are rescaled to a 'suitable' size? I may do some testing on that, see if there is an acceptable range where the imports are not scaled.

  4. #4
    Join Date
    Feb 2007
    Location
    UK
    Posts
    21,382

    Default Re: XD16, and XD17 trial SVG import issue

    its good to see you back mike

    yes what I got, with Xara Photo & Graphic Designer 16.3.0.57723 DL x64 Oct 25 2019, is the scaling down.... it's a pigs ear.. SVG is supposed to have standards, but I suspect xara uses libraries that are either out of date or not up to the mark
    -------------------------------
    Nothing lasts forever...

  5. #5
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,964

    Default Re: XD16, and XD17 trial SVG import issue

    Hi Mike, I think the issues being caused by your Adventures in SVG file rather than a Xara bug:

    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  6. #6
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,964

    Default Re: XD16, and XD17 trial SVG import issue

    Can you try this with the attached. Do you still get a sizing discrepancy?
    Attached Files Attached Files
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #7
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,964

    Default Re: XD16, and XD17 trial SVG import issue

    Just a thought, have you Run X17 as Administrator?

    Here's a similar file based on your token, which works fine for me:
    Attached Files Attached Files
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  8. #8
    Join Date
    May 2001
    Location
    Dundee, Scotland, UK
    Posts
    1,081

    Default Re: XD16, and XD17 trial SVG import issue

    Hi, Egg, thanks for the time you put into the video. As I was watching it, I noticed you were saving and loading the second ship counter, which was the enlarged one that resulted from importing the export of the small one at the top. The already enlarged one doesn't enlarge further, but the small one does.

    I loaded both of the xar files you posted, and the red rectangles work fine, though I note that they are the same length as the enlarged counter. So let me ask you to take my xar file I will attach here, containing two blue rectangles, and export the small one as svg, then re-import it. That's the one giving me the problem. I have been using X16 for over a year, and X17 since yesterday, and will be buying the upgrade to X17 tomorrow. Both X16 and X17 are enlarging the small ship on importing its SVG.

    You could also try exporting the top small ship in the existing Adventures in SVG.xar file you have there, and try importing that, too. I would be surprised if that behaves. Actually, you could also try exporting a red rectangle sized to match the small ship counter, and see if that behaves or not. I just did that with your red counter.

    I took your red counter and shrunk it to the size of the small ship, and exported it, then re-imported it. It came back the same size as the large red counter!

    It's late, do not try this till tomorrow!! Otherwise neither of us will get any sleep till next Monday!

    G'night all
    Mike
    Attached Files Attached Files

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •