Cafe Posted December 19, 2023 Share Posted December 19, 2023 Is there any way to recover or recreate the small images that appear in the product listings, with a script or a module? We accidentally deleted them from the temp directory and would like them to appear again. It is impossible to go one by one since there are more than 10,000 products and they are important to us to quickly locate the product. Link to comment Share on other sites More sharing options...
dinesh badrukhiya Posted December 20, 2023 Share Posted December 20, 2023 To regenerate thumbnails, Login into PrestaShop Back-Office and navigate to Design > Image Settings > Scroll to bottom (Regenerate thumbnails) and select the Products and Small image format to regenerate. It will regenerate all product listing images. Link to comment Share on other sites More sharing options...
ps8modules Posted December 20, 2023 Share Posted December 20, 2023 Hi. The thumbnails in the temp folder are updated automatically when the product list is displayed. Link to comment Share on other sites More sharing options...
Cafe Posted December 20, 2023 Author Share Posted December 20, 2023 (edited) So the one that has been deleted is the original, I just saw it... wanna cry! I have seen that I can obtain the original in each directory with just the ID, without anything else. Could there be a script that will remake it using the larger photo in the directories where the original does not exist? Edited December 20, 2023 by Cafe (see edit history) Link to comment Share on other sites More sharing options...
ps8modules Posted December 20, 2023 Share Posted December 20, 2023 Hi. Be aware that even the largest image has some white edges. Cot then you don't have any backup of my server? Link to comment Share on other sites More sharing options...
Cafe Posted December 20, 2023 Author Share Posted December 20, 2023 (edited) I have created a script that looks for the original image in each image directory and if it does not find it, it uses by default the largest image in the directory (large_default) and copies it, renaming it as the original and it seems to have worked in a server that I have as a test since I see the images of the listings regenerated. Edited December 20, 2023 by Cafe (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now