@@ -2064,11 +2064,10 class TCPDF | |||||
2064 | img = Magick::ImageList.new(file) |
|
2064 | img = Magick::ImageList.new(file) | |
2065 | img.format = "PNG" # convert to PNG from gif |
|
2065 | img.format = "PNG" # convert to PNG from gif | |
2066 | img.opacity = 0 # PNG alpha channel delete |
|
2066 | img.opacity = 0 # PNG alpha channel delete | |
2067 |
|
|
2067 | open( @@k_path_cache + File::basename(file), 'w') do |f| | |
2068 | f.binmode |
|
2068 | f.binmode | |
2069 | f.print img.to_blob |
|
2069 | f.print img.to_blob | |
2070 | f.close |
|
2070 | end | |
2071 | } |
|
|||
2072 | info=parsepng( @@k_path_cache + File::basename(file)); |
|
2071 | info=parsepng( @@k_path_cache + File::basename(file)); | |
2073 | File.delete( @@k_path_cache + File::basename(file)) |
|
2072 | File.delete( @@k_path_cache + File::basename(file)) | |
2074 | else |
|
2073 | else |
General Comments 0
You need to be logged in to leave comments.
Login now