Skip to content

Image data validation issue #166

@ParfenenkovEdit

Description

@ParfenenkovEdit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions