Optimized images overwrite each other
-
If I upload two different images with the same name:
image.png
image.jpg
That optimus generates only one image
image.webpThis causes a conflict, because when request:
image.png nginx response image.webp
image.jpg nginx response image.webpAs a result, different pictures display the same thing.
This could be avoided if the optimized files were saved as image.png.webp and image.jpg.webp
In extreme cases, it is worth adding a filter to configure the name of the files.
add_filter('optimus_webp_filename', 'leave_original_ext'); function leave_original_ext($filename) { return $filename.'.webp' }
The topic ‘Optimized images overwrite each other’ is closed to new replies.