Hey Emil! Sorry for reporting a lot issues XD
I found interesting validating problem related to the image data.
Minimal reproducable example
solid_color_layer: psapi.ImageLayer_8bit = layered_file["Color solid"]
img_data: dict[int, np.ndarray] = solid_color_layer.get_image_data()
solid_color_layer.set_image_data(data=img_data)
I expect save the same data will be fine, but it throws error
ValueError: Invalid 1st dimension size encounted, expected 2,321 but instead got 2,341. This number should represent the layers' height
PSD file here
https://drive.google.com/file/d/1c90ZxmpJiqJ_SErO9TWSCgZ2T6fQzo02/view?usp=sharing
Hey Emil! Sorry for reporting a lot issues XD
I found interesting validating problem related to the image data.
Minimal reproducable example
I expect save the same data will be fine, but it throws error
ValueError: Invalid 1st dimension size encounted, expected 2,321 but instead got 2,341. This number should represent the layers' heightPSD file here
https://drive.google.com/file/d/1c90ZxmpJiqJ_SErO9TWSCgZ2T6fQzo02/view?usp=sharing