diff --git a/lib/paperclip/thumbnail.rb b/lib/paperclip/thumbnail.rb index a601b1a..9e04a49 100644 --- a/lib/paperclip/thumbnail.rb +++ b/lib/paperclip/thumbnail.rb @@ -39,7 +39,8 @@ module Paperclip # that contains the new image. def make src = @file - dst = Tempfile.new([@basename, @format].compact.join(".")) + ext = @format.present? ? ".#{@format}" : nil + dst = Tempfile.new([@basename, ext]) dst.binmode command = <<-end_command