Search the Community
Showing results for tags ' svg'.
Summary: A simple vector object (not an image) gets rasterized by SVG export, if its opacity is not 100%, even though SVG supports setting opacity. Affinity Designer 1 didn't have this problem. Application: Affinity Designer 2.1.1 OS: MacOS 13.5 Reproducible: Yes. Steps to reproduce: 1. Create a new document, with default options for "Press Ready / Letter". 2. Use the Pen tool to draw a simple shape such as a triangle. 3. Set the shape's fill color to any color. In the Layers panel, set the object's opacity to 50%. 4. Try to Export to SVG, using any of the default preset options. Observe that the shape gets rasterized. Notes: 1. If I don't set the object's opacity, it works fine. 1. If in the Export dialog I change the option "Rasterize: unsupported features" to "Rasterize: nothing", then it works as expected: the shape is exported as a non-rasterized vector shape. But what can be happening here? How can setting the opacity be an "unsupported feature"? 2. If I try to open the attached example file in Affinity Designer 1, I get the message "Failed to open document ... The file includes features from a later version of Affinity" --- even though all the features I used did exist in Affinity Designer 1. bug-8.afdesign
Affinity Designer 2.1.1 cannot open a svg if the file is encoded in ASCII. When I change the encoding to UTF-8, then it works just fine: <?xml version="1.0" encoding="ascii" standalone="no"?> <svg version="1.1" ... => <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg version="1.1" ... Is there a reason why Affinity doesn't support ASCII (Inkscape does).
Actually it also means the created artboard adds 1 pixel to the left or on the top. It's a random behavior. So far the bug only happens when I select vector objects to create artboard. Even for the same file and same object, sometimes it's fine, sometimes it shifts to x, sometimes it shifts to y, sometimes both. I also experience the same problem when exporting files to SVG. (the SVG shifts 1 pixel. Even worst, it can be all directions. And objects can possibly be misaligned) Please pay attention to the xy coordinate of the vector objects from the transform panel at the bottom right corner from the recording. (I used ctrl-z to do several tries with same object and file.) It shifted 1 pixel to y at 0:09 and to x at 1:01, but didn't the other tries. Affinity Designer 2 2022-12-10 17-13-19.mp4 It shifted at 0:16 Affinity Designer 2 2022-12-10 17-12-15.mp4 Open the attached file and select the larger vector object > Insert Artboard (Selection). Then you will be supposed to see the problem. But if you do other actions (e.g. delete or move any objects), then you may see other results. pixel shift b.afdesignpixel shift a.afdesign This bug maybe related: System: Lenovo Legion Y540-15IRH i7-9750HFRAM 16GBNVIDIA GeForce RTX2060Windows 11 Home 22H2 22623.1028Windows Feature Experience Pack 1000.22638.1000.0