Skip to content
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

PSD: When make PNG from PSD using TwelveMonkeys, it's different from Photoshop. #910

Closed
dsboo opened this issue Mar 13, 2024 · 4 comments
Closed

Comments

@dsboo
Copy link

dsboo commented Mar 13, 2024

Describe the bug
When make PNG from PSD using TwelveMonkeys, it's different from Photoshop.
Some TEXT Layer is visible white box.

TwelveMonkeys Photoshop
35_001 (1) psd 35_001 (1) photoshop

Version information

  1. The version of the TwelveMonkeys ImageIO library in use.
    For example: 3.10.1

  2. The exact output of java --version (or java -version for older Java releases).

openjdk 11.0.22 2024-01-16
OpenJDK Runtime Environment Temurin-11.0.22+7 (build 11.0.22+7)
OpenJDK 64-Bit Server VM Temurin-11.0.22+7 (build 11.0.22+7, mixed mode)
  1. Extra information about OS version, server version, standalone program or web application packaging, executable wrapper, etc. Please state exact version numbers where applicable.

To Reproduce
Steps to reproduce the behavior:

  1. Compile the below sample code
  2. Download the sample image file
  3. Run the code with the sample file
  4. See error

Expected behavior
Make the same PNG as Photoshop

Example code

File psdFile = new File("src/main/resources/sample.psd");
InputStream targetStream = FileUtils.openInputStream(psdFile);
BufferedImage image = ImageIO.read(inputStream);
ImageIO.write(image, "PNG", new CustomByteArrayOutputStream());

Less is more. Don't add your entire project, only the code required to reproduce the problem. 😀

Sample file(s)
It's over 25MB, if you need i can send your email.

Stak trace
Always include the stack trace you experience.

Screenshots
If applicable, add screenshots to help explain your problem.
Do not add screenshots of code or stack traces. 😀

Additional context
Add any other context about the problem here.

@haraldk
Copy link
Owner

haraldk commented Mar 14, 2024

Hi @dsboo,

The TwelveMonkeys PSD plugin does not render PSD documents, it simply reads the bitmap data in the composite layer (or other layers). So most likely the bitmap data in the composite layer actually looks like the image on the left. If you can open the image in other viewer software (Preview or other), how does the image appear then?

Anyway, I will need the full PSD file to verify if you think it's a bug. If you can share using a file share service (DropBox or similar) that is best. I'm afraid such large attachments will make an email bounce.

@dsboo
Copy link
Author

dsboo commented Mar 17, 2024

@haraldk thanks for reply.

I knew it already.

The TwelveMonkeys PSD plugin does not render PSD documents, it simply reads the bitmap data in the composite layer (or other layers)

Actually left image(it's png that made using TwelveMonkeys) was opened with mac image viewer.

I will share DropBox URL tomorrow.

@dsboo
Copy link
Author

dsboo commented Mar 18, 2024

I can not share today:(
i will update in this week.

@haraldk
Copy link
Owner

haraldk commented May 30, 2024

Closing, as we still lack information to reproduce.

@haraldk haraldk closed this as not planned Won't fix, can't repro, duplicate, stale May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants