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

Recommended Posts

I purchased Affinity Designer several months ago to facilitate my web development flow while avoiding subscription-based software (Illustrator) and buggy freeware (Inkscape).
Creating web designs in AD is a superb experience, but exporting parts as SVG for web usage, often interactive, is an absolute nightmare. My workflow bottlenecks hard when I have to manually modify a majority of the elements within the file. Worst yet, if any design change is required I have to manually modify the elements again on a fresh export. To be completely honest, if Inkscape didn't crash and corrupt so frequently I'd put up with its awful UX purely for its web-oriented SVG exporting advantage.

Steps I frequently need to do manually for web usage and file size reduction:

  1. Create style element and convert matching style attributes into shared classes
  2. Reduce excessive tspan occurrences
  3. Convert common positioning to group transforms
  4. Occasionally convert absolute to relative coordinates (paths, lines, etc.)
  5. Add custom attributes (ex: Vue.js attributes)
  6. Remove AD attributes (serif:id)

 

What can I do within AD to reduce the amount of manual corrections on web-oriented SVG exports?
Are there any plans to add such features to AD in the near future?

 

A personal example of a prettified AD file without any other modification:

1285486726_Screenshot(184).thumb.png.06a8b3c7b270325deda95e854336649e.png

Link to comment
Share on other sites

13 hours ago, Taylor said:

What can I do within AD to reduce the amount of manual corrections on web-oriented SVG exports?

Nothing, it's glued inside the SVG export code generator and so needs to be changed there for how the code is generated and written out then. I wonder that it creates such tspan occurrences, if the text isn't here inserted as seperate arranged characters at all.

☛ Affinity Designer 1.10.8 ◆ Affinity Photo 1.10.8 ◆ Affinity Publisher 1.10.8 ◆ OSX El Capitan
☛ Affinity V2.3 apps ◆ MacOS Sonoma 14.2 ◆ iPad OS 17.2

Link to comment
Share on other sites

Meanwhile, can't it be all that parsed by a home made python script, even if a super ugly one ? (so you'd just run it for any file you'd export out of AD, might even run so that it process anything new that falls into certain folder(done that , too)). After all is a plain text file you are editing manually... I mean, I've done stuff like that for other plain text file formats (for 3D, etc) , and am by no means a programmer....  (an artist needing to automate some stuff, sometimes). I remember doing one of those in an afternoon.... Tho not sure how those tags and reformatting are, as not knowing to detail the needs, neither remembering right now the structure and how it was (have opened the SVGs from Designer only a few times). Any of you (non-staff forum members) actually knowing a bit of coding surely find it dumb easy.... 

I mean... might at least do your tedious task reduced by a 50%, if not a 100 %...

EDIT: Oh, wait, the actual graphic is a screen cap of a SVG, lol...Edit....no, a prettified version, oki.

AD, AP and APub. V1.10.6 and V2.4 Windows 10 and Windows 11. 
Ryzen 9 3900X, 32 GB RAM,  RTX 3060 12GB, Wacom Intuos XL, Wacom L. Eizo ColorEdge CS 2420 monitor. Windows 10 Pro.
(Laptop) HP Omen 16-b1010ns 12700H, 32GB DDR5, nVidia RTX 3060 6GB + Huion Kamvas 22 pen display, Windows 11 Pro.

 

 

Link to comment
Share on other sites

Surely Affinity can produce better formatted/prettier SVG code to make editing easier, It might be a good subject for a discussion i.e "improving svg code layout"

iMac 27" 2019 Somona 14.3.1, iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • 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.