mirror of
https://github.com/kemko/paperclip.git
synced 2026-01-06 10:25:40 +03:00
Merge pull request #25 from insales/fix_thumbnail_with_explicit_format
Явное указание формата не работало
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user