Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
[ANN] PSD parser (incomplete
Ilmari Heikkinen
9/26/2006 10:58:00 PM
Hi,
I've written an incomplete PSD parser in ruby, using the Photoshop 6.0
file format
docs. It can handle paths, some adjustment layer types (curves work at
least, others undertested, sadly), most image descriptors, and
generally split the psd file into a big
hash with descriptive (and hopefully helpful) key names.
The implemented part is roughly pages 8-26 in the PS 6 file format spec pdf +
curves, levels, hue&saturation. Levels and hue&sat adjustment layers untested.
There is some value bug in the path parsing part that I forgot to write down ;)
Actual layer & channel pixmap data is not decompressed, so implementing RLE &
ZIP decompression needed for any actual image manipulation.
Tested with a ~60 layer 21MB psd and ~70 layer 4.5MB psd.
Sample output with long strings replaced with their lengths:
http://librend.rubyforge.org/finalsiz...
I don't know if I have time or will to continue the parser, so releasing
the code with the distant hope that someone might find it useful.
http://librend.rubyforge.org/psd_par...
--
Ilmari
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
[ANN] PSD parser (incomplete
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password