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

how to add watermark with Magick++? #153

Closed
shangjiuliu opened this issue Mar 17, 2016 · 3 comments
Closed

how to add watermark with Magick++? #153

shangjiuliu opened this issue Mar 17, 2016 · 3 comments
Labels

Comments

@shangjiuliu
Copy link

how to add watermark with Magick++?

@dlemstra
Copy link
Member

There are various ways of doing this. You can find the command line examples here: http://www.imagemagick.org/Usage/annotating/#watermarking

And here is a translation of one of the examples:
composite -dissolve 25% -gravity south wmark_image.png logo.jpg wmark_dissolve.jpg

Image watermark("wmark_image.png");

Image logo("logo.jpg");
logo.artifact("compose:args", "25%");
logo.composite(watermark, GravityType::South, CompositeOperator::DissolveCompositeOp);
logo.write("wmark_dissolve.png");

@dlemstra
Copy link
Member

Did this answer your question and can we close the issue?

@shangjiuliu
Copy link
Author

Yes.
another question:
Image watermark("wmark_image.png");
how do i get the data of watermark?

i can do like this:
Blob ret;
watermark.write(&ret);
ret.data();
is there another way get the data of watermark?

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

No branches or pull requests

2 participants