diff --git a/lib/thumbnail/creation.rb b/lib/thumbnail/creation.rb index 0531f65155074be2661e8ce889e30e7fd48f33f3..aebc32bd9815aee17d1876640fabbb243828c838 100644 --- a/lib/thumbnail/creation.rb +++ b/lib/thumbnail/creation.rb @@ -43,6 +43,7 @@ module Thumbnail # computes the new image geometry and yields to a block. The # return value of the block is the return value of the method. img = Magick::Image.read(input)[0] + img.alpha(Magick::DeactivateAlphaChannel) img.change_geometry!(size) { |cols, rows| img.thumbnail! cols, rows } img.write(output) end