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
Labels

Comments

@Pjino
Copy link

@Pjino 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

This comment has been minimized.

Copy link
Collaborator

@talklittle talklittle commented Jul 10, 2017

What ImageMagick command are you trying to use?

@Pjino

This comment has been minimized.

Copy link
Author

@Pjino Pjino commented Jul 10, 2017

I was thinking composite.

@talklittle

This comment has been minimized.

Copy link
Collaborator

@talklittle talklittle commented Jul 10, 2017

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

This comment has been minimized.

Copy link
Author

@Pjino 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

This comment has been minimized.

Copy link
Author

@Pjino 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.