-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
In: lib/paperclip/paperclip_processors/transcoder.rb
Around line 117:
def set_convert_options options
return options[:convert_options] if options[:convert_options].present?
options[:convert_options] = {output: {}}
return options[:convert_options]
end
This fails to add :output to the convert_options when I only have :input defined, so I get this error:
NoMethodError (undefined method `[]=' for nil:NilClass):
paperclip-av-transcoder (0.6.4) lib/paperclip/paperclip_processors/transcoder.rb:37:in `initialize'
referencing:
@convert_options[:output][:s] = format_geometry(@geometry) if @geometry.present?
A workaround for now is to just have a blank :output=>{} in my paperclip attachment definition, but the logic of assinging a default to the convert_options is erroneous.
julitrows
Metadata
Metadata
Assignees
Labels
No labels