Live data from Hacker News

Psd.rb

layervault.tumblr.com

11–20 of 94 posts

Re: Psd.rb

#11
post #3

So, will there be writing .PSD files as well? This would be the über thing. Imagine: upload a .PSD and get back a clean HTML layout + bootstrap_overrides.css

>So, will there be writing .PSD files as well? Writing PSD files is considerably easier than reading them. To write, you need only support the features you actually use. To read, you must support everything. For example, Photoshop always saves its layers RLE compressed (or it did when I last wrote code to write PSD files, which was about five years ago), but the format supports uncompressed layer data just fine. So i…

Well, so you could iterate on your design - and pick up the changes made in CSS back into the design PSD. And work onwards from there

Re: Psd.rb

#12
post #10
post #2

I feel like this could be used to automatically convert a simple .psd web layout to non-shitty HTML and CSS.

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.

That's true.

Ideally, you'd have to spend some time making sure your .psd is formatted properly instead of just 100 layers names Layer X.

Re: Psd.rb

#13
This programmer has written about the PSD format in colorful detail: "Trying to get data out of a PSD file is like trying to find something in the attic of your eccentric old uncle who died in a freak freshwater shark attack on his 58th birthday."

https://code.google.com/p/xee/source/browse/XeePhotoshopLoad...

(ref: first link in the article)

Re: Psd.rb

#14
post #3

So, will there be writing .PSD files as well? This would be the über thing. Imagine: upload a .PSD and get back a clean HTML layout + bootstrap_overrides.css

To be fair, if you wanted to convert a PSD to HTML the last thing you'd need is Bootstrap.

Re: Psd.rb

#16
Wow, fantastic work and a lot of respect for open sourcing this lib when it's clearly an important part of LayerVault.

Re: Psd.rb

#17
I just wrote a script with this that takes a directory of PSDs and outputs PNGs for each one. It took about 2 minutes. This is great.

Re: Psd.rb

#19
post #17

I just wrote a script with this that takes a directory of PSDs and outputs PNGs for each one. It took about 2 minutes. This is great.

Wow, everything old, is new again ;)

I think with an actual copy of Photoshop, and a little Applescript, this is something you could have done > 15 years ago.

Re: Psd.rb

#20
post #17

I just wrote a script with this that takes a directory of PSDs and outputs PNGs for each one. It took about 2 minutes. This is great.

Wow, everything old, is new again ;) I think with an actual copy of Photoshop, and a little Applescript, this is something you could have done > 15 years ago.

So maybe what's great is avoiding the cost of Photoshop, which many have found to be outrageous.
Post reply on HN