Live data from Hacker News

Psd.rb

layervault.tumblr.com

91–94 of 94 posts

Re: Psd.rb

#91

Earlier quoted context omitted.

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

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

#93
post #91

Earlier quoted context omitted.

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.

That's all fine and good at least up until you have to kern a line of text. Then what?

Re: Psd.rb

#94
post #10

Earlier quoted context omitted.

Look up markupwand.com an YC alumni. The problem is harder than it looks. Now, I am not an expert in PSD format but a PSD that can be automatically converted to HTML has to be specifically formatted. For example, if you merge text layers with image layers, it becomes difficult to extract the information.

We've actually solved this and will be launching in about a week. We've been working on it for over a year now. It runs inside Photoshop (there is no upload stage nor do you have to open up separate software) and it generates HTML and CSS that looks like a designer wrote it and slices up all your images. It also outputs LESS, SASS, HAML, Slim, Jade and I think there are some other formats I may be forgetting. Text is…

Awesome.We own bunch of CC licenses and I am happy to beta test, if you guys want. :-)
Post reply on HN