Skip to content
Snippets Groups Projects
Commit 2a333eef authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

Fix bug: Wrong Backgroung to PDF Thumbnails

parent 4d2d3904
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment