Hello,

We have a website, and someone accidentally moved the files on the filesystem where the images are stored. Now we have a gallery with a large amount of images, but there is a huge gap where there are dead links for images.

Would anyone know of a way of scanning all images for broken images, and then automatically remove images where the corresponding file could not be found?

Comments

joachim’s picture

Status: Active » Fixed

Load each image node, check whether the file exists, then do a node_delete() on it if not found.

If your site is large, you'll want to do that in a batch process.

wrender’s picture

Hi. Thanks for the input on this. Would we be able to hire you to do this? It is quite a large site and needs to be cleaned up.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.