We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unsharpening
1 parent f18118c commit b51224eCopy full SHA for b51224e
1 file changed
lib/imgproxy/options_builders/processing.rb
@@ -110,6 +110,19 @@ class Processing < Base
110
111
META = %i[size resize adjust].freeze
112
113
+ def initialize(options)
114
+ super
115
+
116
+ # Legacy name for unsharp_masking
117
+ if options.key?(:unsharpening)
118
+ warn "[DEPRECATION] `unsharpening` option is deprecated. Please use `unsharp_masking` instead."
119
+ delete(:unsharpening)
120
+ unless self.key?(:unsharp_masking)
121
+ self[:unsharp_masking] = CASTERS[:unsharp_masking].cast(options[:unsharpening])
122
+ end
123
124
125
126
private
127
128
def group_opts
0 commit comments