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.
1 parent 0da30c6 commit 1fa8becCopy full SHA for 1fa8bec
lib/imagekit/url.rb
@@ -149,6 +149,13 @@ def transformation_to_str(transformation)
149
transform_key = SUPPORTED_TRANS.fetch(key, nil)
150
transform_key ||= key
151
152
+ if transform_key == "oi" || transform_key == "di"
153
+ transformation[i][key][0] = "" if transformation[i][key][0] == "/"
154
+ transformation[i][key] = transformation[i][key].gsub("/", "@@")
155
+ end
156
+
157
+ transformation[i][key] = ERB::Util.url_encode(transformation[i][key]) if transform_key == "ot" || transform_key == "otf"
158
159
if transformation[i][key] == "-"
160
parsed_transform_step.push(transform_key)
161
else
0 commit comments