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

Just starting out? Need help? Post your questions and find answers here.
emm
New User
New User
Posts: 7
Joined: Tue Oct 18, 2022 7:47 pm

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

Post 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.
User avatar
jacdelad
Addict
Addict
Posts: 1993
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

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

Post by jacdelad »

None of that I know. Should be a piece work
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

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

Post by StarBootics »

Hello,

Should be do-able according to Adobe website :

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

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
Quin
Addict
Addict
Posts: 1127
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

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

Post 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?)
User avatar
Piero
Addict
Addict
Posts: 865
Joined: Sat Apr 29, 2023 6:04 pm
Location: Italy

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

Post by Piero »

Banging your head on the wall to decipher a copyrighted pay-every-month layer encoding?
See Krita :mrgreen:
SMaag
Enthusiast
Enthusiast
Posts: 303
Joined: Sat Jan 14, 2023 6:55 pm
Location: Bavaria/Germany

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

Post by SMaag »

here is a well documented Rust implemantation of Adobe psd

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