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

Adding a watermark #41

Open
Pjino opened this issue Jul 9, 2017 · 5 comments
Open

Adding a watermark #41

Pjino opened this issue Jul 9, 2017 · 5 comments

Comments

@Pjino
Copy link

Pjino commented Jul 9, 2017

I think it is not possible yet to add another picture with an watermark on top of an image.
Are you considering that?
Thank you.

@talklittle
Copy link
Collaborator

What ImageMagick command are you trying to use?

@Pjino
Copy link
Author

Pjino commented Jul 10, 2017

I was thinking composite.

@talklittle
Copy link
Collaborator

You could try something like #39 (comment)

image_operator(image, "convert -size:  1200x1200 #{image_path} \ #{image_to_combine_path}  -geometry  +0+10  -composite") 
|> create(in_place: true)

@Pjino
Copy link
Author

Pjino commented Jul 10, 2017

Thank you!
Maybe if you would put this in README you wouldn't be bothered anymore by someone asking for composite feature... :)

@Pjino
Copy link
Author

Pjino commented Jul 10, 2017

Well, after a few attempts I wasn't able to make any image_operator() commands work.
For example,

image = open(Path.absname("priv/static/uploads/45992.png"))
image_operator(image, "convert -resize:  50% ") |> create(in_place: true)

doesn't output nothing although I get no errors...

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