Page 1 of 1
Export to SVG problem
Posted: Fri Nov 13, 2020 3:30 am
by DK
Hi.
Just wondering if anyone can explain why some shapes export from Moho with rounded lines intact and some object lines are exported as broken shapes?
Cheers
D.K
Re: Export to SVG problem
Posted: Sat Nov 14, 2020 3:36 am
by DK
Not sure about this but it looks like if a line has been adjusted via the Line Width tool
the SVG export treats the line as a shape and breaks it up into bits???
D.K
EDIT:
Tested and confirmed.
Re: Export to SVG problem
Posted: Sat Nov 14, 2020 6:53 am
by SimplSam
Yeah - I have noticed this sometimes. SVG's don't have variable width lines - so the lines need to be converted into shapes, and I guess the exporter got slightly lazy with that process (after doing the hard part).
You can 'fix' the broken outlines using tools like Affinity Designer, InkScape and Illustrator - which allow you to join shapes/paths.
Re: Export to SVG problem
Posted: Sat Nov 14, 2020 8:40 am
by DK
You can adjust the line width of an svg line when it is exported, (Edit: If it is exported from Moho with an even line width to an illustrator package),...makes me think an improved svg export script that supported uneven line widths from Moho could be a very handy thing if it were possible to do?
Cheers
D.K
Re: Export to SVG problem
Posted: Sat Nov 14, 2020 11:41 am
by hayasidist
Not a solution to the problem reported, just an observation: I've found (going back to 2015 and before) SVG import / export to be unreliable when dealing with anything that could be described as even marginally "complicated" and, despite various efforts in the dev teams at the time, the issues reported (by me and others) never really got resolved satisfactorily. Personally speaking, I avoid SVG for anything other than the very simplest of images.
Re: Export to SVG problem
Posted: Sat Nov 14, 2020 11:10 pm
by DK
Not sure how others use SVG's but my workflow normally runs along the lines of illustrating characters/objects in Moho then exporting them as SVG's to an illustration package for lettering and final layout. These jobs range from T-Shirt designs, Books, Pamphlets, Posters, Style guides for TVC's etc.
Anyone else use SVG's regularly?
Cheers
D.K
Re: Export to SVG problem
Posted: Sun Nov 15, 2020 4:04 am
by SimplSam
I must say - I am a huge fan of importing vector (SVG, AI, EPS) into Moho.
My current workflow typically includes Affinity Design (which can open SVG, AI, EPS, PDF, WMF etc. and export SVG) as a pre-step to Moho. AfD has options to flatten transforms, rewrite styling and simplify the structure when exporting to SVG - which seems to cure 90% of issues.
The remaining 10% typically relates to Layering, Masking and embedded Bitmaps.
I actually created some half-written Moho LUA tools to import (~35% done) & export (~55% done) SVGs. Obviously neither work perfectly - but can still assist in certain scenarios. I probably need to tidy up the codebase's at some point - and share.
Re: Export to SVG problem
Posted: Sun Nov 15, 2020 10:13 am
by slowtiger
Hej Sam - I like your avatar image!
Re: Export to SVG problem
Posted: Mon Nov 16, 2020 4:28 pm
by SimplSam
slowtiger wrote: ↑Sun Nov 15, 2020 10:13 am
Hej Sam - I like your avatar image!
hehe. It steadily evolved from an enlarged dot above the i in SimplSam.
Re: Export to SVG problem
Posted: Mon Nov 16, 2020 10:27 pm
by DK
Would any of those helper scripts of yours maintain adjustments in the line width of an svg rather than have it broken up into pieces?
Cheers
D.K
Re: Export to SVG problem
Posted: Tue Nov 17, 2020 12:09 pm
by SimplSam
My script (== my brain) is not able to convert the variable width lines into equivalent fill shapes. I am sure the process is out there somewhere, but not yet in the script.
Instead my script averages the line widths over the course of the path, such that it has a uniform width. i.e. It is the equivalent of setting the line width to be uniform before you export.
Re: Export to SVG problem
Posted: Wed Nov 18, 2020 9:17 am
by DK
Wow. That would be a handy Moho tool indeed SS

!!!
Cheers
D.K