diff options
| author | Edgars Beigarts <[email protected]> | 2015-02-11 13:15:40 +0200 |
|---|---|---|
| committer | Edgars Beigarts <[email protected]> | 2015-02-11 13:37:01 +0200 |
| commit | e71164242ff4012a1ebbae75300a3527b1fc84a0 (patch) | |
| tree | 7bf9bdebe15cd2f16b3b2d32cee70c124da0675a /lib | |
| parent | c24ec92ab6495b6b0c36e8e139d3d3ce350fc5c5 (diff) | |
| download | caxlsx-e71164242ff4012a1ebbae75300a3527b1fc84a0.tar.gz caxlsx-e71164242ff4012a1ebbae75300a3527b1fc84a0.zip | |
Fix content types for uppercased image file extensions
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/axlsx/package.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/package.rb b/lib/axlsx/package.rb index cd03a173..8a4f29dc 100644 --- a/lib/axlsx/package.rb +++ b/lib/axlsx/package.rb @@ -314,7 +314,7 @@ module Axlsx c_types << Axlsx::Override.new(:PartName => "/xl/#{sheet.pn}", :ContentType => WORKSHEET_CT) end - exts = workbook.images.map { |image| image.extname } + exts = workbook.images.map { |image| image.extname.downcase } exts.uniq.each do |ext| ct = if ['jpeg', 'jpg'].include?(ext) JPEG_CT |
