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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: no text watermark when original image has exif rotate 90 #142

Merged
merged 1 commit into from
Sep 29, 2022
Merged

Conversation

wchaws
Copy link
Owner

@wchaws wchaws commented Sep 29, 2022

Issue #, if available:

fix: #141

Description of changes:

Checklist

  • 馃憢 I have run the unit tests, and all unit tests have passed.
  • 鈿狅笍 This pull request might incur a breaking change.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tingxin
Copy link

tingxin commented Sep 29, 2022

watermark with image mixed text should be fixed also

@wchaws wchaws merged commit 797a3bb into master Sep 29, 2022
@@ -276,7 +276,7 @@ export class WatermarkAction extends BaseImageAction {
const gravityOpt = this.calculateMixedGravity(opt);
const wbt = await watermarkImg.toBuffer();

const metadata = await ctx.image.metadata();
const metadata = withNormalSize(ctx.metadata);
Copy link
Owner Author

Choose a reason for hiding this comment

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

@tingxin Here is the mixedWaterMark

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.

no watermark when original image exif rotate 90
2 participants