wp-rocket icon indicating copy to clipboard operation
wp-rocket copied to clipboard

TranslatePress Image Translation is not compatible with WP Rocket Lazyload

Open alfonso100 opened this issue 11 months ago • 2 comments

Describe the bug TranslatePress has a feature to translate images, which allows one to choose a different image in each language. https://translatepress.com/translate-images-in-wordpress/

When our Lazyload for images is optimizing the images, the TranslatePress image replacement is not working.

Image Full image here: https://i.imgur.com/GzSfMxd.png

To Reproduce Steps to reproduce the behavior:

  1. Using TranslatePress
  2. Translate an image an image, choosing a different one for each language
  3. Enable Lazyload for images in WP Rocket
  4. See the image not being replaced

Expected behavior We should find a way to be compatible with this feature or exclude those images from being Lazyloaded

Screenshots Image Full image here: https://imgur.com/Uo5ftgB

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context Ticket 1: https://secure.helpscout.net/conversation/2821551478/535578?viewId=2683093 Ticket 2, old: https://secure.helpscout.net/conversation/2686418438/508717

alfonso100 avatar Jan 16 '25 20:01 alfonso100

It's incompatible with CDN rewrites too:

  • https://group-onecom.slack.com/archives/C08F4M3BBJL/p1747227899724959
  • https://secure.helpscout.net/conversation/2937651393/560432?viewId=1213662

WordPresseur avatar May 15 '25 06:05 WordPresseur

It's incompatible with the WPR Webp Add-on too: https://secure.helpscout.net/conversation/3106995781/592317?viewId=7406897

rosamillan avatar Oct 14 '25 16:10 rosamillan