Code cleanup.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9971 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Etienne Massip 2012-07-10 20:23:49 +00:00
parent 7502ac484e
commit 9c9b0a4150
1 changed files with 2 additions and 3 deletions

View File

@ -2064,11 +2064,10 @@ class TCPDF
img = Magick::ImageList.new(file)
img.format = "PNG" # convert to PNG from gif
img.opacity = 0 # PNG alpha channel delete
File.open( @@k_path_cache + File::basename(file), 'w'){|f|
open( @@k_path_cache + File::basename(file), 'w') do |f|
f.binmode
f.print img.to_blob
f.close
}
end
info=parsepng( @@k_path_cache + File::basename(file));
File.delete( @@k_path_cache + File::basename(file))
else