Fix corrupted SVG files that have been imported from Inkpad (iOS) and saved with Adobe Illustrator


I've found that if I export a file from Inkpad (iOS) as an SVG and then work on it in Adobe Illustrator (CS 6) and then try and save as an SVG again then often the file becomes faulty, but there's a simple solution:

(1) Open the SVG in TextWrangler or a similar text editor
(2) delete all "inkpad" prefixed namespaces and their values (e.g. inkpad:layerName="Layer 2")
(3) also delete any instances of:
     xmlns:inkpad="http://taptrix.com/inkpad/svg_extensions" or similar
(4) save the file and all should now work - test by opening in your web browser (e.g. Safari)

Importing these files back into Inkpad is a different matter, as I've found that it is temperamental. However, here's a workaround that has been working for me:

(5) Use Dropbox app or Mail (iOS) to open the cleaned SVG file (see 1-4) in TouchDraw
(6) Export the file from TouchDraw back to Dropbox as an SVG file
(7) from within Inkpad select 'Import' and find the file in Dropbox

Alternatively, work with the file now in TouchDraw. This has some advantages over Inkpad for the later stages of vector drawing:

(8) import and export to and from Adobe Illustrator is less problematic
(9) when paired with TouchDraw for Mac you can exchange files between iPad and desktop in TouchDraw format, which can then be exported as EPS, PDF, SVG and Visio (from your Mac)
(10) TouchDraw can do all the same things as Inkpad (and more in fact - it's a flow chart wizard!)

Notes

In general, development of TouchDraw (updated 19 March 2013) seems more active than Inkpad (updated 19 September 2012), there is also the desktop version of TouchDraw and an Android version.  The one thing that Inkpad retains, however, is a simplicity and immediacy that makes starting a vector drawing so fast and intuitive. This has made it for me the most productive drawing app - so I can see why people might well favour it - but with a little bit of adjustment, TouchDraw is as stated in (10) an app that is able to do the same and more. (I particularly like the ability of TouchDraw for iPad to lock not just layers but single items within layers, which is great for clumsy fingers like mine.)

Endorse  on Coderwall

Comments