PhotoshopAPI icon indicating copy to clipboard operation
PhotoshopAPI copied to clipboard

can not wirte to psd

Open imblowsnow opened this issue 2 months ago • 0 comments

document = psapi.LayeredFile.read(os.path.join(os.path.dirname(__file__), "example.psd"))
output_dir = os.path.join(os.path.dirname(__file__), "data")
document.write(os.path.join(output_dir, "output.psd"), True)

2025-10-25T07:30:04.371400336Z 2025-10-25 07:30:04 [LinkedLayerData]OpenImageIO '90140.webp' input does not support loading from memory, attempting to source file from directory: '/app' 2025-10-25T07:30:04.371842297Z 2025-10-25 07:30:04 [LinkedLayerData]Unable to open linked file '/app/90140.webp', trying to access the image data for smart object layers related to this file will fail 2025-10-25T07:30:04.526559306Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526607583Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526610974Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526738183Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526741776Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526744011Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526903589Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526912677Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526914338Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526915840Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526917367Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526918741Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526920197Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526924548Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.526935916Z 2025-10-25 07:30:04 [SmartObject] Filter based warps are not supported at the moment (Edit->Puppet Warp and Edit->Perspective Warp). These will not be represented properly in the API 2025-10-25T07:30:04.530128372Z 2025-10-25 07:30:04 [File] Removed file /app/data/output.psd 2025-10-25T07:30:04.531719390Z 2025-10-25 07:30:04 [File] Created file /app/data/output.psd 2025-10-25T07:30:04.532039466Z 2025-10-25 07:30:04 [SmartObjectWarp]Invalid number of divisions encountered while trying to create subdivided mesh. Expected at least 1 division across x and y but instead got 0, 0 2025-10-25T07:30:04.532823241Z 2025-10-25 07:30:04 [Progress] Counter was deleted before it was able to complete, only managed to reach 0/1. Stopped on task: '' 2025-10-25T07:30:04.533039873Z Traceback (most recent call last): 2025-10-25T07:30:04.533050805Z File "/app/main.py", line 6, in 2025-10-25T07:30:04.533148484Z document.write(os.path.join(output_dir, "output.psd"), True) 2025-10-25T07:30:04.533219881Z RuntimeError: 2025-10-25 07:30:04 [SmartObjectWarp]Invalid number of divisions encountered while trying to create subdivided mesh. Expected at least 1 division across x and y but instead got 0, 0 2025-10-25T07:30:04.537027095Z OpenImageIO exited with a pending error message that was never 2025-10-25T07:30:04.537053909Z retrieved via OIIO::geterror(). This was the error message: 2025-10-25T07:30:04.537057109Z Image "webp" does not exist. Also, it is not the name of an image format that OpenImageIO recognizes.

imblowsnow avatar Oct 25 '25 07:10 imblowsnow