Skip to content

Commit

Permalink
Prioritize webp format for previews
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmz committed Feb 7, 2025
1 parent a2b2298 commit dc2e3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/AttachmentsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default class AttachmentsController {
const { attId, type } = ctx.params;
const { query } = ctx.request;
const { useImgProxy } = currentConfig().attachments;
const imageFormats = ['jpeg', 'webp', 'avif'];
const imageFormats = ['webp', 'jpeg', 'avif'];
const formatExtensions = {
jpeg: 'jpg',
webp: 'webp',
Expand Down

0 comments on commit dc2e3ae

Please sign in to comment.