artursapek / mondrian

Web-based vector graphics editor
MIT License
1.24k stars 104 forks source link

Adobe Illustrator file import support. #4

Open Fishrock123 opened 10 years ago

Fishrock123 commented 10 years ago

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.

davelab6 commented 10 years ago

.ai are now in fact PDF files, and pdf.js exists :)

artursapek commented 10 years ago

@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.)

davelab6 commented 10 years ago

Here's a screenshot of a CS5 AI file in Textmate:

screen shot 2014-01-24 at 22 54 41

Fishrock123 commented 10 years ago

I can confirm this is correct. However, not all PDF views seems to think it is valid...

Fishrock123 commented 10 years ago

Mozilla's pdf.js does correctly display them, though.

juliankrispel commented 10 years ago

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.

artursapek commented 10 years ago

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.

tomByrer commented 10 years ago

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?