Page 1 of 1

How to open a .psd file with PureBasic? And how to access layers individually?

Posted: Thu Sep 07, 2023 2:23 pm
by emm
Hello world,

Do you know a library I could load in PB to read .psd files (photoshop images)?

I also like to be able to access the individual layers: I want to make animations with them so want to load layers into sprites.

Any help highly appreciated.

Regards

E.

Re: How to open a .psd file with PureBasic? And how to access layers individually?

Posted: Thu Sep 07, 2023 5:19 pm
by jacdelad
None of that I know. Should be a piece work

Re: How to open a .psd file with PureBasic? And how to access layers individually?

Posted: Thu Sep 07, 2023 5:28 pm
by StarBootics
Hello,

Should be do-able according to Adobe website :

https://www.adobe.com/devnet-apps/photo ... Id-1030196

Best regards
StarBootics

Re: How to open a .psd file with PureBasic? And how to access layers individually?

Posted: Fri Sep 08, 2023 12:45 pm
by Quin
Definitely doable, but you'll have to write it yourself I think.

That's both a good and a bad thing about being in a niche language. I personally like it, because it's immensely satisfying to run something and know that it's your code and that you wrote it, or at the very least to have it be from someone on the forum, and generally small enough to understand within a couple of hours, but also it makes development take longer, because you can't just grab a library that someone else wrote and is used in loads of projects, but also depends on 50 other libraries...(JavaScript much?)

Re: How to open a .psd file with PureBasic? And how to access layers individually?

Posted: Fri Sep 08, 2023 6:55 pm
by Piero
Banging your head on the wall to decipher a copyrighted pay-every-month layer encoding?
See Krita :mrgreen:

Re: How to open a .psd file with PureBasic? And how to access layers individually?

Posted: Wed Sep 13, 2023 6:05 pm
by SMaag
here is a well documented Rust implemantation of Adobe psd

https://github.com/chinedufn/psd/tree/master