fabianmichael / kirby3-imagekit

Color-managed thumbnails for Kirby 3
MIT License
13 stars 0 forks source link

example on how to configure #1

Open bnomei opened 3 years ago

bnomei commented 3 years ago

how can one create a custom chain? how to forward options? https://github.com/spatie/image-optimizer#creating-your-own-optimization-chains

maybe create a callback to get the optimzer chain? so it can be configured using kirbys options?

fabianmichael commented 3 years ago

It’s not configurable at the moment. Thought about just using properties like fabianmichael.imagekit.jpegoptim.interlace or something like that. It’s just an early prototype … or alternatively let the user provide a class to define his*her own optimizer chain. Is there something specific, that you want to change?

bnomei commented 3 years ago

nothing specific yet. i am just in favor of exposing options if possible.

a callback to provide my own optimize chain would be fine for me.