Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is managing a website with products in multiple languages and is concerned about the excessive number of photos in the Media Library, which exceeds 56,000 images. The client noticed that deleting photos in one language does not remove them from other languages.
Solution:
We explained that WPML does not duplicate physical files on the server, only the database entries for images to manage translations of image-related texts like captions and descriptions. If the client's images do not require translation (i.e., the same image is used across all languages), there is no need for the 'Media Translation' add-on. This add-on is only necessary if different images are needed for different language versions, such as images containing text that requires translation.

If the solution provided does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 7 replies, has 2 voices.

Last updated by Nicolas V. 9 months, 2 weeks ago.

Assisted by: Nicolas V..

Author Posts
October 2, 2024 at 9:30 am #16244390

joannesB

Background of the issue:
I am managing a website with 254 products in 4 languages: Dutch, German, English, and French. Each product in the Dutch version has 4 to 5 photos, and the other languages use the same photos. However, there are now more than 56,000 photos on the website. I tested by deleting photos in the English Media Library, but they still appeared in the English product page, which is expected behavior.

Symptoms:
The Media Library in languages other than Dutch contains photos that are not used, leading to an excessive number of photos (over 56,000).

Questions:
How can I prevent this from happening again?
How can I delete 56,000 photos?

October 2, 2024 at 9:33 am #16244466

joannesB

it's an urgent issue . so let me know if anyone is there to help . On top of that i have anothe quick question currently i have deactivated the WPML Media Translations plugins . so my question is : once i have deleted all the products images then only main images will be on the media folder so for example my one product that has 4 language version , and i have only one image for that so how i can connect that one image to show on all of the 4 laguages ? like if i have 5 images for one product that should be display for all of the languages i don't want any image duplication any more ! so pleaes help on that and i have also send you large explation on top.

Thank you
JOHN

October 2, 2024 at 9:39 am #16244485

joannesB

and also when i have turn of the media translation then on header 4 flags are gone only dutch flags is showing although i have active main wpml plugin and sting tranlstion as well. can you take a look on that as well ?

October 2, 2024 at 3:23 pm #16246541

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

Welcome to the WPML support forum! Before we proceed with optimizing your media library, I’d like to clarify a few important points:

- WPML does not duplicate physical files on your server, so there's no need to worry about server space.
- WPML only duplicates database entries for images, allowing it to store translations of image-related texts (such as captions, alt text, and descriptions).
- Your media library should be quite similar in each language because, when you translate a post with images, the database entries for those images are duplicated. That's quite similar of the translation of a post, where another post is added into the database.
- The "Media Translation" add-on is only necessary if you want to translate the image itself, for instance, if you need a different image in the translated version (like an image containing text that needs translation). In that case, you’d need to upload the translated image, which obviously would increase the number of images on your server. If your images don't need translation, you don’t need this add-on.

I hope this clarifies how WPML handles images.

October 2, 2024 at 5:09 pm #16246968

joannesB

Thanks ! So as per you said if i delete all unnessary images then my website should display all images like one product if that has image and this image will also display on other languages as well ?

October 2, 2024 at 6:33 pm #16247127

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

I'm not sure to fully understand.

1. I would recommend to keep the "duplicated" images (again that's not a physical file) generated by WPML because their entry in the database contains all the text-related information. It's a good SEO practice to translate the ALT texts from images.

2. If - while Media translation add-on was active - you manually uploaded images for your secondary language but now you want to use the same image as the original language: then yes, you can delete those images as - in this situation - they are real files.

More information about Media translation: https://wpml.org/documentation/getting-started-guide/media-translation/

October 9, 2024 at 6:46 am #16268103
joannesB

Good morning I was pointed out by my hosting company that WPML could well be the reason for a super slow website. What can you guys say about this. This is the same website that the earlier question was about. hidden link
Once you are logged in, the website becomes terribly, almost unworkably slow.

Please look at the attachment

New threads created by Nicolas V. and linked to this one are listed below:

https://wpml.org/forums/topic/split-media-translation-issues-on-my-website/

Scherm­afbeelding 2024-10-07 om 14.08.34.png
Scherm­afbeelding 2024-10-07 om 14.08.00.png
Scherm­afbeelding 2024-10-07 om 14.07.45.png
Scherm­afbeelding 2024-10-07 om 14.07.34.png
October 9, 2024 at 7:35 pm #16272234

Nicolas V.
Supporter

Languages: English (English ) French (Français )

Timezone: America/Lima (GMT-05:00)

Hello,

As the original issue is resolved and since we limit one issue per ticket, I have opened a new ticket for your additional question. Let's continue our conversation on that new ticket: https://wpml.org/forums/topic/split-media-translation-issues-on-my-website/

Keeping one issue by forum threat helps to keep the forum clean and organized, it will also help other users with similar problems to find solutions when searching the forum.

Thanks for your understanding.
Nico