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