Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Always return JPEG

  • Loading branch information...
commit 1884b0271a94c89d9e8d411ac0556825caaf1d25 1 parent d069921
Petter Wigle authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/imageproxy/convert.rb
View
4 lib/imageproxy/convert.rb
@@ -26,7 +26,8 @@ def source_etag
end
def content_type
- source_headers[:content_type]
+# source_headers[:content_type]
+ "image/jpeg"
end
def empty?
@@ -83,6 +84,7 @@ def initialize(options, cache_time, requested_etag = nil)
def process_image(original_image)
image = Magick::Image.from_blob(original_image).first
+ image.format = "JPEG"
if options.resize
x, y = options.resize.split('x').collect(&:to_i)
Please sign in to comment.
Something went wrong with that request. Please try again.