Thanks Rudi, I just thought that if I switch to WEBP image format, the source will also be in WEBP, no matter in which extension the user uploads the photo. I was interested in this solely to save disc space on the server. In the end it turns out even more, because in the folder saved images in JPEG + WEBP ...