Skip to content

Conversation

mooflu
Copy link
Contributor

@mooflu mooflu commented Nov 26, 2022

No description provided.

@xupefei xupefei self-requested a review November 29, 2022 22:35
@xupefei
Copy link
Member

xupefei commented Nov 29, 2022

LGTM! Does this issue happen also to Photoshop PSD files?

@xupefei xupefei merged commit b417664 into QL-Win:master Nov 29, 2022
{
IMagickImage<byte> mi;
// Only flatten multi-layer gimp xcf files.
if (Path.LocalPath.EndsWith(".xcf") && layers.Count > 1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mooflu Ouch I shouldn't merge the PR so quickly -- this LocalPath should be lowercase before checking the EndsWith. Could you create a separate PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, will do.

@mooflu
Copy link
Contributor Author

mooflu commented Nov 29, 2022

I believe a PSD file has an extra (first) layer that contains the flatted contents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants