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

MiniMagick resize_and_pad does not pad #2157

Closed
fatuhoku opened this issue Apr 12, 2017 · 0 comments · Fixed by #2298
Closed

MiniMagick resize_and_pad does not pad #2157

fatuhoku opened this issue Apr 12, 2017 · 0 comments · Fixed by #2298

Comments

@fatuhoku
Copy link

fatuhoku commented Apr 12, 2017

  ...

  include CarrierWave::MiniMagick

  version :canonized_logo do
    process :resize_and_pad => [800, 400, "#000000", Magick::CenterGravity]
  end

  ...

INPUT: 626x416 image

lion-cubs

EXPECTED OUTPUT: 800x400 image

ACTUAL OUTPUT: 602x400 image
output

Makes no sense. No padding occurred at all.

Why is this?

@fatuhoku fatuhoku changed the title Miniresize_and_pad does not work as expected. MiniMagick resize_and_pad does not pad Apr 12, 2017
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

Successfully merging a pull request may close this issue.

1 participant