How can I render an image stocked in a custom module with an image style?
Thank to Hudri :
Image styles only work with managed files (uploaded, with entry in DB), not with static assets. Since this is a static asset anyway, just provide the correct size in your module.