When I read the psd file and the layers contain smart filters, the program crashes
Traceback (most recent call last):
File "/Users/lun/PycharmProjects/PythonProject/main_ps_api.py", line 29, in <module>
replace_image(psd_file, pt_file, new_psd_file)
File "/Users/lun/PycharmProjects/PythonProject/main_ps_api.py", line 21, in replace_image
psd.write(pathlib.Path(new_psd), True)
RuntimeError: Tried to construct the mesh with vertices that are less than 1e-2 (0.01) across one of the axis. Trying to construct this mesh would cause the Octree calculation to fail. If called from the context of a layer this is likely a mistake in the transformation. The bounding box of the vertices is [-inf, -inf]
When I read the psd file and the layers contain smart filters, the program crashes