From 2a333eef78a39a4393ef5b248a9fcdd53fd8afed Mon Sep 17 00:00:00 2001 From: Bruno Nocera Zanette <bnzanette@inf.ufpr.br> Date: Tue, 13 Oct 2015 02:22:46 -0300 Subject: [PATCH] Fix bug: Wrong Backgroung to PDF Thumbnails --- lib/thumbnail/creation.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/thumbnail/creation.rb b/lib/thumbnail/creation.rb index 0531f6515..aebc32bd9 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 -- GitLab