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

Mogrify.create/2 doesn't work on existing image #38

Open
sunboshan opened this issue Feb 17, 2017 · 1 comment
Open

Mogrify.create/2 doesn't work on existing image #38

sunboshan opened this issue Feb 17, 2017 · 1 comment
Labels

Comments

@sunboshan
Copy link

Here I want to use convert to resize an image. Mogrify.create/2 is using convert underneath.

import Mogrify

open("/tmp/old.jpg")
|> resize_to_fill("100x100")
|> create(path: "/tmp/new.jpg")

However no image was created. Change the last line to save(path: "/tmp/new.jpg") works though.

@talklittle talklittle added the bug label Oct 6, 2017
@altyaper
Copy link

altyaper commented May 8, 2018

I'm not really sure but the arguments of create should be a list

import Mogrify

open("/tmp/old.jpg")
|> resize_to_fill("100x100")
|> create([path: "/tmp/new.jpg"])

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

No branches or pull requests

3 participants