Open Fishrock123 opened 10 years ago
.ai are now in fact PDF files, and pdf.js exists :)
@davelab6 what do you mean by that? Was there a recent change to the format?
I'm not sure about doing it client-side, but I know this could be implemented pretty easily with a backend endpoint that uses Inkscape to convert the file, and sends it back. (There's a simple backend for Mondrian on Heroku for file permalinks and embeds. I haven't open-sourced yet because it has sensitive data - S3 keys and such. I need to clean it up.)
Here's a screenshot of a CS5 AI file in Textmate:
I can confirm this is correct. However, not all PDF views seems to think it is valid...
Mozilla's pdf.js does correctly display them, though.
Illustrator can export SVG, and most modern browsers support svg, no need to parse an .ai file. Seems like a taking two steps back imho.
It would be taking two steps back to try to support AI, and nobody wants to develop that anyway.
It wouldn't be taking two steps back to make a simple system that does the conversions automatically, opening up Mondrian as an option for working with that many more existing files, at zero cost to users. .ai
is the default choice when saving from Illustrator. I'd guess that most vector files are .ai
files.
Mondrian doesn't want to be Illustrator. If I liked Illustrator, I never would have started this project.
IMHO, would be nice if Mondrian has solid support for Illustrator & Inkscape .svg
files (for their funky meta data).
make a simple system that does the conversions automatically
Perhaps a separate repo/project? Maybe hack Inkscape's conversions?
Yes this would probably be hell to implement, given how obscure and convoluted adobe files are, but it would be a great feature to have.
This would be best implemented by including a separate .ai parser library. Not sure if any javascript ones exist, though.