EmilDohne / PhotoshopAPI

A modern and performant C++20 read/write parser of Photoshop Files (*.psd and *.psb) with fully fledged Python bindings hosted on PyPi
https://photoshopapi.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
94 stars 9 forks source link

Allow for python initialization with analogous types #86

Open EmilDohne opened 2 months ago

EmilDohne commented 2 months ago

Currently the python API is strictly typed such that initializing a layers width and height or position without explicitly casting to an int will raise an error which isnt very pythonesque. This should be addressed by allowing for another initialized which silently floors the value from float -> int