Permalink
Browse files

Always return JPEG

  • Loading branch information...
1 parent d069921 commit 1884b0271a94c89d9e8d411ac0556825caaf1d25 Petter Wigle committed May 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 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)

0 comments on commit 1884b02

Please sign in to comment.