Vike doesn't include an image optimizer (in order to keep Vike lean), instead you can choose an optimizer library, for example:

See also awesome-vite.