Skip to content

Commit

Permalink
Convert rotation to integer when fetching variant (#1485)
Browse files Browse the repository at this point in the history
Vips does not like strings
  • Loading branch information
phinze committed May 9, 2024
1 parent 3cc0331 commit a2c59cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/items_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def render_tree_node(node, current_value, count_method)

def rotated_variant(image, options = {})
if image.metadata.key? "rotation"
options[:rotate] ||= image.metadata["rotation"]
options[:rotate] ||= image.metadata["rotation"].to_i
end
image.variant(options) if image.variable?
end
Expand Down

0 comments on commit a2c59cf

Please sign in to comment.