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

Watermark using geometry and extent #8

Open
tuxtux59 opened this issue Mar 5, 2018 · 0 comments
Open

Watermark using geometry and extent #8

tuxtux59 opened this issue Mar 5, 2018 · 0 comments

Comments

@tuxtux59
Copy link

tuxtux59 commented Mar 5, 2018

Hi,
I found your gem pretty nice but I can't get what I'm looking for:
I would like to generate a 320x480 px image where the original content fit merged with your watermark.

I succeeded got a 320x480px with the following code:
has_attached_file :picture,
thumb: {thumb: '320x480>'},
convert_options: {thumb: '-gravity center -background white -extent 320x480'}

With this code I have a 320x480px image with original fit inside without ratio loss

When I had processor [:watermark] and replace '320x480>' by{ geometry: '320x480>', watermark_path: "path_to_watermark.png"} The compilator throws me an error due to unrecognized method gravity.

Have you some idea to get both image size and watermark?

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

No branches or pull requests

1 participant