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.
Psd.rb
21–30 of 94 posts
Re: Psd.rb
#22Re: Psd.rb
#23>Adobe has never produced an easy way for developers to work with the format. That's not entirely fair. Adobe has openly released a comprehensive description of the format which is, as far as I know, accurate. The problem is that the format itself is a heap of features piled on year after year with apparently no regard for doing things consistently.
The file spec released by Adobe ( http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/ ) is actually outdated, wrong in some places, and can be incredibly vague at times.
Re: Psd.rb
#24I feel like this could be used to automatically convert a simple .psd web layout to non-shitty HTML and CSS.
Re: Psd.rb
#25Earlier quoted context omitted.
The file spec released by Adobe ( http://www.adobe.com/devnet-apps/photoshop/fileformatashtml/ ) is actually outdated, wrong in some places, and can be incredibly vague at times.
I can't speak to its accuracy, but, June 2013 wasn't yesterday. It isn't that old -- and it isn't like there's been a release of Photoshop in the past month and a half, so, it seems pretty recently updated.
Re: Psd.rb
#26I 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
#27Earlier quoted context omitted.
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.
But this way I don't have to keep paying $20/mo to Adobe CC so that I can run the script again next month.
Re: Psd.rb
#28Not trying to start a Ruby/Python fight or anything; Python just happens to be my preferred language.
Re: Psd.rb
#29I 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
#30This 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)