TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Psd.rb

629 pointsby chamzaalmost 12 years ago

22 comments

artagnonalmost 12 years ago
This programmer has written about the PSD format in colorful detail: &quot;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.&quot;<p><a href="https://code.google.com/p/xee/source/browse/XeePhotoshopLoader.m#108" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;xee&#x2F;source&#x2F;browse&#x2F;XeePhotoshopLoad...</a><p>(ref: first link in the article)
评论 #6130457 未加载
评论 #6130238 未加载
mistercowalmost 12 years ago
&gt;Adobe has never produced an easy way for developers to work with the format.<p>That&#x27;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.
评论 #6129670 未加载
评论 #6130314 未加载
评论 #6131062 未加载
tommooralmost 12 years ago
Wow, fantastic work and a lot of respect for open sourcing this lib when it&#x27;s clearly an important part of LayerVault.
bltalmost 12 years ago
Does anyone else think it&#x27;s weird that they decided to make this library in Ruby? It drastically cuts down on the audience. Why not C&#x2F;C++ with wrappers for all the dynamic languages?<p>EDIT: nevermind, it makes sense now that I see their main product is a version control system for designers. Still, it would be nice to see this ported to native code some day.
评论 #6131460 未加载
评论 #6143646 未加载
gburt2almost 12 years ago
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.
评论 #6130240 未加载
评论 #6129958 未加载
评论 #6130235 未加载
mhdalmost 12 years ago
Is this more feature complete (esp. regarding to newer PS versions) than e.g. libpsd?<p><a href="http://sourceforge.net/projects/libpsd/" rel="nofollow">http:&#x2F;&#x2F;sourceforge.net&#x2F;projects&#x2F;libpsd&#x2F;</a>
评论 #6134468 未加载
adamwong246almost 12 years ago
Idea: Use this to dynamically &quot;compile&quot; photoshop files into png, jpgs, etc on the rails assets pipeline.
tluyben2almost 12 years ago
Thank you very much for doing this! I wish all people hacking the PSD format would join forces and help with one project. There are too many partial implementations which scratch an itch instead of trying to be a full implementation.
评论 #6130609 未加载
njaalmost 12 years ago
Does anyone know of a similar tool for Python?<p>Not trying to start a Ruby&#x2F;Python fight or anything; Python just happens to be my preferred language.
评论 #6132576 未加载
评论 #6130647 未加载
评论 #6131919 未加载
评论 #6131470 未加载
评论 #6132143 未加载
评论 #6131142 未加载
freerobbyalmost 12 years ago
Great work and thanks for building this. There&#x27;s a lot of room for improvement in automating manipulative photoshop exports, and I look forward to seeing what people do with this, especially in terms of building command line tools.
netforayalmost 12 years ago
I have been trying to do this from last 3 months. But I intend to make modifications to layers (turn on or off, change colors) and export to PNG. When I saw Psd.rb I thought it is done. But it just exports the channel data saved by Photoshop. So our modifications wont reflect in it.
评论 #6131741 未加载
captainbenisesalmost 12 years ago
I reckon a good tool (that this psd.rd wouldn&#x27;t actually help write, but), would be one that rendered an html&#x2F;css page - and exported a layered PSD, so you could prototype an app, render it to .psd and send it to your designer friend to make it look rad.
carlosdpalmost 12 years ago
Thank you! There&#x27;s quite a ton I can do to this. Will definitely be contributing soon.
smickiealmost 12 years ago
This is a great example of why open source is brilliant. Everybody wins. We get a PSD parser. LayerVault benefits from the world improving they&#x27;re core product too.
envexalmost 12 years ago
I feel like this could be used to automatically convert a simple .psd web layout to non-shitty HTML and CSS.
评论 #6129733 未加载
评论 #6129563 未加载
评论 #6130074 未加载
smtmalmost 12 years ago
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
评论 #6129647 未加载
评论 #6129805 未加载
评论 #6129557 未加载
cveigtalmost 12 years ago
These are great news for developers and an easy way to communicate between designers with developers. Is the beginning of a solution for a big problem.
primituralmost 12 years ago
I&#x27;d pay for a Lua port of this. Anyone interested? Drop me a PM.
isaacjohnwesleyalmost 12 years ago
Truly awesome, cant wait to think of the possibilities with this.
jherikoalmost 12 years ago
nice. now if someone can port it to C so that everyone can benefit... :)
aftermathvcalmost 12 years ago
awesome!
Radlealmost 12 years ago
&#x2F;&#x2F; PSD is not my favourite file format.<p>I see bro...