Skip to content

Commit

Permalink
Use webp for image cropper
Browse files Browse the repository at this point in the history
We use webp for all thumbnails in the admin now. This should
not be any different.
  • Loading branch information
tvdeyen committed Jan 9, 2024
1 parent 7ab2e6f commit c8bdae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/crop.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<%= simple_format Alchemy.t(:explain_cropping) %>
<% end %>
<div class="thumbnail_background">
<%= image_tag @picture.url(size: '800x600', flatten: true), id: 'imageToCrop' %>
<%= image_tag @picture.url(size: '800x600', flatten: true, format: "webp"), id: 'imageToCrop' %>
</div>
<form>
<%= button_tag Alchemy.t(:apply), type: 'submit' %>
Expand Down

0 comments on commit c8bdae0

Please sign in to comment.