Skip to content
Snippets Groups Projects
Unverified Commit 0e5bc235 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

wip variant service

parent 37f38d2d
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,12 @@ class VariantService
def transformations
@transformations ||= begin
transformations = { format: @format }
transformations[]
if params[:size].present?
split_size = params[:size].split('x')
dimensions = Array.new(2) { |i| split_size[i].to_i || nil }
else
dimensions = blob_size
end
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment