Settings

Theme

Ai2html – Converts your Illustrator document into HTML and CSS

ai2html.org

43 points by pie 11 years ago · 11 comments

Reader

andybak 11 years ago

I don't currently have access to an install of Illustrator but I'd be very interested to see some sample output.

abdias 11 years ago

Maybe a silly question, but why not just export the illustrator file (when inside Illustrator) as SVG?

  • archietse 11 years ago

    Two main reasons:

    1) SVG text scales as you scale the the SVG object so the text becomes unreadable pretty quickly as the artwork scales down, or looks hilariously large as it scales up. By rendering the text as html, we can scale the "graphic" up and down, but keep the text readable at the same font-size and line-height. This is important because we are trying to reduce the number of versions of the artwork that we have to create in order to accommodate viewports that range from mobile phones up to giant desktop monitors. An example of this is here: http://nyti.ms/1CQdkwq Change your window size when you view the page and you'll see the artwork scale but the text stays the same size. More examples here: https://delicious.com/archietse/ai2html,responsive

    2) When Illustrator saves the SVG, every line of text is broken into separate SVG elements which makes editing the text very difficult. By having the text rendered in HTML, it is much easier for editors to go into the CMS and make edits without having to wade through a tangle of SVG code.

  • SixSigma 11 years ago

    Scripting

pcurve 11 years ago

https://www.youtube.com/watch?v=Xkj5oWt-G4o

Simple demo.

  • dwtkns 11 years ago

    Though it does similar things and shares the name, that's not the same tool.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection