Strapi v5 - plugin migration https://github.com/marlokessler/strapi-plugin-image-optimizer

then it relies on whatever sharp i have installed globally i think, and it then works