From e68c74b4f7317f70166e4dec7d6472d94b2e0831 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Sat, 13 Apr 2013 18:32:35 -0700 Subject: [PATCH] Re-apply 15ca8db58d22de270c0684faae04c3a6597223f6 which got lost in a merge --- .../middleman-more/extensions/automatic_image_sizes.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb b/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb index 45e6df67..b526a982 100644 --- a/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb +++ b/middleman-more/lib/middleman-more/extensions/automatic_image_sizes.rb @@ -30,11 +30,7 @@ module Middleman # @param [Hash] params # @return [String] def image_tag(path, params={}) - params[:supported_extensions] ||= %w(.png .jpg .jpeg .bmp .gif) - - if !params.has_key?(:width) && !params.has_key?(:height) && !path.include?("://") && - params[:supported_extensions].include?(File.extname(path).downcase) - + if !params.has_key?(:width) && !params.has_key?(:height) && !path.include?("://") params[:alt] ||= "" real_path = path @@ -53,8 +49,6 @@ module Middleman end end end - - params.delete(:supported_extensions) super(path, params) end