lib/html2doc/mime.rb in html2doc-1.4.4 vs lib/html2doc/mime.rb in html2doc-1.4.5

- old
+ new

@@ -90,13 +90,11 @@ s = [maxwidth, (s[1] * maxwidth / s[0]).ceil] if s[0] > maxwidth s end def get_image_size(img, path) - realsize = ImageSize.path(path).size # does not support emf + realsize = ImageSize.path(path).size s = [img["width"].to_i, img["height"].to_i] - return [s, s] if /\.emf$/.match?(path) - s = realsize if s[0].zero? && s[1].zero? s = [nil, nil] if realsize.nil? || realsize[0].nil? || realsize[1].nil? [s, realsize] end