11ty Image to Lume Imagick #350
Unanswered
simplerethink
asked this question in
Q&A
Replies: 1 comment 10 replies
-
Lume has the imagick plugin that can transform an image and outputs different versions. For example you can create a imagick:
- resize: [450]
format: [webp, jpeg, avif]
suffix: -450
- resize: [550]
format: [webp, jpeg, avif]
suffix: -550
- resize: [800]
format: [webp, jpeg, avif]
suffix: -800 Or if you don't want to keep this configuration manually, you can create a const formats = ["webp", "jpeg", "avif"];
const sizes = [450, 550, 800];
export const imagick = sizes.map((size) => {
return {
resize: [size],
formats,
suffix: `-${size}`
};
}) |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm considering migrating from 11ty to Lume.
In 11ty, image processing has the ability to create custom file names and file hashes
In 11ty, I can do something like this:
This produces something like
mountain-450w-OsnQ_vZGAM.webp
Is there similar capability in Lume? If not, could this be considered as a feature request?
Beta Was this translation helpful? Give feedback.
All reactions