[SDL2_image] Can't save JPEG images (vcpkg + Visual Studio)

Hi there,
I’m using SDL2 with vcpkg on Visual Studio Professional 2022 (v17.12.0), everything is fine except I can’t save JPEG images using SDL2_image module.
IMG_Init(IMG_INIT_JPG | IMG_INIT_PNG) call fails, too.
However, in my folder I see all the related DLL files (jpeg62.dll, turbojpeg.dll and so on) and PNGs are ok. I’ve installed SDL2_image typing this:

vcpkg install sdl2-image[libjpeg-turbo]

Is there something else I need to set up to use JPEGs?

Thanks.

What error message does SDL_GetError() return after IMG_Init/IMG_SaveJPG failed?

I got the classic “JPEG images are not supported”.

You should probably report that at GitHub · Where software is built

Are the DLLs in the same directory as your app’s .exe?

Yes, of course, they’re all there correctly.

Ok, thanks, I’ll try to ask there.