In my local project, the files have the same size even with the option enabled.
From what I understood, the file “photo.jpg” in the bucket should be smaller
than the original photo on my PC, correct? The files have the same size.
Yes, when I upload a new media, the original file is uploaded to S3 together with the optimized file.