Overview of the Issue
When using the Imagify plugin with WPML Media Translation, the translated copies of an image use the same file as the original. If you permanently delete the translated copy of an optimized image, Imagify also deletes the backup of the original image and its WebP and AVIF files. After that, you cannot restore the original image with Imagify.
Workaround
Until Imagify fixes this, do not permanently delete the translated copy of an image that Imagify optimized. If you need to delete it:
- Before you delete the copy, make a copy of the image’s backup file in
wp-content/uploads/backup/(the same year and month folders as the image). - Delete the translated copy in the Media Library.
- Put the backup file back in the same folder.
- In MediaBulk Optimization, optimize the original image again, so Imagify creates its WebP and AVIF files again.