Closed (fixed)
Project:
Image
Version:
6.x-1.1
Component:
image.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2011 at 22:02 UTC
Updated:
21 Oct 2011 at 17:00 UTC
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
Comment #1
joachim commentedLoad 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.
Comment #2
wrender commentedHi. 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.