New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to generate PNG file from PSD when update 3.6.1 to 3.9.4 #719
Comments
Thanks for reporting! I can see from the stack trace that this happens during reading of the PSD (layer info), it's not directly related to the conversion to PNG format. But, there's something with the grouping of the layers in the file you use, that is either non-spec or we don't handle it properly... Probably the latter. Layer group support was introduced in 3.9.0, so I guess any version below that will work. Unfortunately, I can't say much more without having a sample image, or at least a dump of the layer structure. All my sample files can be converted using that code (assuming Are you able to export a copy of the file with the image data removed (but the layer structure intact)? Or if you can create a PSD with a similar layer structure that also expose this problem, that would also help. |
Closing as not reproducible. Please reopen if you find a sample that can be shared. |
@haraldk I'm currently able to reproduce this issue on I have no reason to believe this file was created in a client other than modern Photoshop. Any time you could take to investigate this would be appreciated. 😄 Stack trace:
Related repro code: val psdImageReaderSpi = new PSDImageReaderSpi();
val imageReader = (PSDImageReader) psdImageReaderSpi.createReaderInstance(new Object());
val stream = ImageIO.createImageInputStream(in);
imageReader.setInput(stream);
int height = imageReader.getHeight(0); // Exception Asset: |
Hmm.. Sorry, I missed that you had submitted a way to reproduce this... However, I'm unable to reproduce the issue with the above code and attached file on the current master branch. So it seems the issue is resolved through some other fix. 😀 |
Describe the bug
When I use 3.9.4 latest version, fail to generate PNG file from specific PSD.
But When I use 3.6.1 version, success to generate PNG file from that(failed with 3.9.4).
If you need more infomation, tell me freely.
Version information
The version of the TwelveMonkeys ImageIO library in use.
3.9.4
The exact output of
java --version
(orjava -version
for older Java releases).CentOS Linux 7 (Core)
To Reproduce
Expected behavior
generate PNG file from PSD normally
Example code
If you need, i will write unit test code.
Sample file(s)
I cannot attached, because it's customer's.
Stak trace
Additional context
The text was updated successfully, but these errors were encountered: