Project - Remove Orphaned Image Files

Last updated: 2023-12-01

Overview

This tool provides an expedited way to identify image files that are not referenced into any project drawings. Once identified, an option to delete these image files is provided.

Usage

WisDOT [***] tab > Manage panel > Project menu > Remove Orphaned Image Files

The tool can also be accessed from the command line: DOTREMOVEORPHANEDIMAGES

  1. After launching the command, a "Browse For Folder" dialog will be displayed. Select the project folder to search for image files.
  2. Once the project directory is selected, all dwg files and image files will be analyzed in the subfolders of the selected directory. The analysis is performed in 3 phases.
    1. Phase 1: A list of image files located with the project is created. (.jpg, .png, .jpeg, .tiff, .tif, .sid)
    2. Phase 2: Each dwg database is opened in the background to see if any of the image files have been referenced. If an image has been referenced, it is removed from the image file list from phase 1. The database is also analyzed to see if a Map 3D raster connection exists in the drawing. If there is a raster connection, the dwg is added to another list for further analysis at the end. If at any point all image files are found to be referenced, the dwg analysis ends.
    3. Phase 3: Each dwg in the list of files with a Map 3D raster connection is opened in a read-only state. The raster connections are analyzed to see which image file is referenced and removed from the list created in Phase 1.
  3. The list of image files that were not referenced is presented in a dialog. To delete the image file, check the corresponding box in the Delete column. Continue to delete the selected files. If there is a corresponding world file for the image, it will also be deleted.

Warning: Only dwgs and images within the same project directory structure are analyzed. If an image is referenced into a different project dwg, it still may appear as orphaned.