pytoshop icon indicating copy to clipboard operation
pytoshop copied to clipboard

Trying to create new psd from scratch

Open dhaneshwarsingh opened this issue 4 years ago • 1 comments

  • psdwriter version:
  • Python version: 3.7.6
  • Operating System: Mac

Description

I was trying to figure out how to create a new PSD from scratch with the dimensions and stuff I want but I am still unable to find out documentation for that. can you give me some idea where to start That would be very helpful!

dhaneshwarsingh avatar May 26 '20 14:05 dhaneshwarsingh

The documentation is indeed absent for most of the code. What I ended up doing is making a template psd file (in my case of two white layers, one of which has a mask), reading that using psd: pytoshop.PsdFile = pytoshop.read(fd). I then modified the properties (layer sizes and contents) to my needs, and saved this psd file afterwards.

Not the prettiest by far, but this was the only workaround I could find.

mruijzendaal avatar Feb 24 '21 13:02 mruijzendaal