Jump to content
You must now use your email address to sign in [click for more info] ×

JimboJones

Members
  • Posts

    16
  • Joined

  • Last visited

Reputation Activity

  1. Thanks
    JimboJones got a reaction from Chris Heath in SVG Export transform matrix, rounding errors   
    Ok, I gues I know what the problem is and have a workaround. And an idea for improvement, as well.
    Here are some steps to recreate the initial problem:
    If you draw a rectangle, path, whatever shape with integer values, they are exported to SVG as expected (with integer values in SVG). As soon as you start transforming your rectangles/paths a transform matrix is added to the SVG (NO integer values in SVG!) You can flatten those tranforms in export settings, but doing so won’t bring back integer values to SVG. So, the problem is, when you transform an object, the transformation factor seems to be saved somewhere. This info is then used for the transform matrix in the SVG.
    To solve this and erase the transform information you can join your shape with another shape and you get back your integer numbers without transform matrix (when exporting to SVG).
    A better solution would be to add a visual cue, some form of indication to the transform panel, wether a shape is transformed or not.
    This way you could
    see that your current shape is transformed in some way (scaled 1.5, for example) and provide an option to reset the value or to use the current transformation as new default. Would be great if someone could pass this to the dev team,
    Thanks!
    By th eway, @jc4d asked for something similar a while ago, I guess:
     
  2. Like
    JimboJones got a reaction from walt.farrell in System Palettes Colors and Color Profile Problems in Affinity V2   
    Mostly I just want assign a profile to match it with the print shop's profile. Having an already pressed convert button doesn't help here when all I want is change the profile, not the color values. Maybe this is just a UI thing that needs to be solved. But other than that, the initial problem described above is the bigger issue.
    Nonetheless, thanks for your help!
  3. Like
    JimboJones got a reaction from lacerto in SVG Export transform matrix, rounding errors   
    I define a path in Designer like this:
    One point is on 2.000 px from top 5.000 px from left. After creating the SVG I get numbers like 12.234 or 4.114. I know that the numbers change as SVG works different when creating paths.
    But I'm missing the ability to achieve precision. It doens't matter if "flatten tranform" is activated. The numbers just don't correspond to the original. This leads to an imperfect svg that doesn't align to the pixel grid as expected. Also, as mentioned above things like clip paths I didn't create in my Designer file, but are there in the SVG.
    Maybe we need a preference in the SVG export where you can define the decimals. Or a general "save SVG for Web" that reduces some of the not needed complexity.
    Figma wrote about that https://www.figma.com/blog/with-figmas-new-svg-exports-less-more/.
    Maybe this helps for some future updates
     
     
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.