Re:Psd.rb
by ejstronge on Tuesday July 30, 2013 @06:53PM
(#6130665)
A bit off-topic, but is there a spec for Illustrator files? It seems the only one I see on Google is from an old version of AI...
[ Parent
| on HN ]
Re:Psd.rb
by TheZenPsycho on Wednesday July 31, 2013 @08:45AM
(#6133250)
As noted, newer illustrator files are just PDF's (perhaps with extra data for editing).
Older illustrator files are in fact, EPS files. This is somewhat tricky since, an EPS is not actually so much a data format as it is a turing complete programming language. Sooo... yeah, who knows what black magic they did to pull off reliably reading and writing it.
You can read an EPS file by interpreting it and remembering the shapes it renders on the page.
You can write an EPS file by emitting your list of shapes without using the turing-complete features of the language.
Not that hard, at least conceptually.
Re:Psd.rb
by TheZenPsycho on Saturday August 03, 2013 @10:02AM
(#6152086)
That's all fine and good at least up until you have to kern a line of text. Then what?
Re:Psd.rb
by kellysutton on Tuesday July 30, 2013 @06:59PM
(#6130692)
Not yet, but there's always next week...