Having had Nitrosell a number of years, we have a large number of images in the PAM image directory that are now no longer referenced by active products. I have around 6,500 such images which I suspect are significantly slowing down our Sync as Sync seems to scan the entire directory rather than just grab images referenced by PAM.
Has anyone come up with a method to identify and delete such images?
Any recommendations from Nitrosell?
Bump! We are definitely in the same boat here. I don’t want to lose the images, but some kind of archive for “dormant” image files would be great—something that simply separates images for items that are not currently live on the site, but retains them so they are available if the item is put back on the site or so we can manually remove them entirely when no longer needed, as Emma noted.
We are currently testing a new PAM functionality called Archiver, which is designed to identify and move unused product image files to a separate sub-folder created in the item images directory. Hopefully the feature will be ready to operate within a few weeks. I will get back to you with any update.
Don’t know if I would be to worried about 25,000 images but the sync does start to struggle when you get over 100,000. I was able to give the image archive a try this week and it worked really well (although a little slow). It reduced me from about 250,000 images down to about 115,000 images in about 5 days.
Thanks for the feedback Robby, glad you found it useful.
We have spent a lot of time optimising image synchronisation. The thing is we are limited by the operating system – Windows itself does not do a good job handling directories with that many files. In fact, most operating systems struggle in this scenario. By now, we’re probably close to the limit in how much faster we can make it.
To those who haven’t already, I would definitely recommend running the image removal tool in PAM.
Same than @emma , can you explain how this feature works? We have just to update NsSync and Pam and let the softwares works? Do we have some options to modify or something to unlock first?
The Archiver tool is available in PAM version 2.1.50 build 1690 and later. In order to make it visible PAM needs to be launched in debug mode as described in the article below:
The feature will then become available in PAM > Tools (‘Image Archiver…’).
Once you define your product image source directory in the Archiver window and click on ‘Archive Images!’ the tool will first create a sub-folder called ‘Archived’ in your item images directory and then will start identifying the files that are inactive and moving them to the folder.
Please be advised that when you run the process for the first time it may take days to archive the orphan images, depending on how many files there are in your pictures folder.