The official document states that your solution supports PSD/PSB for both input and output.
And, there was also some code snippet for this.
But when I tried it, it didn’t work at all to export PSD/PSB from PSB.
I can see those files after the operation, but I can’t open both of those files.
When I try to open these files in Photoshop, it says “could not complete your request because the file is not compatible with this version of photoshop”.
image.png (49.2 KB)
Many forums say that this error message occurs when the psd/psb file is corrupted.
Therefore, please check if the psb file works well in your solution.
Here are my test files.
Input PSB file: psb_test.zip (24.9 KB)
Output PSB file: backgroundpsb_test.zip (14.5 KB)
I load PSB file as this code.
PsdLoadOptions imageLoadOptions = new PsdLoadOptions(); imageLoadOptions.setLoadEffectsResource(true); imageLoadOptions.setUseDiskForLoadEffectsResource(true); PsdImage psdImage = (PsdImage)Image.load(allPath, imageLoadOptions);
and then, I tried to make all of text layers invisible.
and save file with this code.
I also tested saving files immediately after loading the image, but it also didn’t work.
This is a very important factor in purchasing your solution to our company…
So I hope there is a solution for this problem.
Thanks a lot!