summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorJurriaan Pruis <[email protected]>2015-03-14 16:01:39 +0100
committerJurriaan Pruis <[email protected]>2015-03-14 16:01:39 +0100
commit7d642038ddef2f78f826b86fee75180ffe17d215 (patch)
tree6e405da6b91c216b36f29d338e75583228c0f08f /lib
parent98613199f6b398a85f1744eafde710959372143b (diff)
parente71164242ff4012a1ebbae75300a3527b1fc84a0 (diff)
downloadcaxlsx-7d642038ddef2f78f826b86fee75180ffe17d215.tar.gz
caxlsx-7d642038ddef2f78f826b86fee75180ffe17d215.zip
Merge pull request #375 from ebeigarts/fix-upcased-images
Fix content types for uppercased image file extensions
Diffstat (limited to 'lib')
-rw-r--r--lib/axlsx/package.rb2
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