Hello,
I am using imageRename and am finding that many of the resulting photos in the outdir are corrupted files, that is, they have no data associated with them (file size is 0 kb and no image is there when clicked on). Below is a snippet of the code. ARCHIE_1 here is a site folder with folders in it for each SD card pulled from the camera, these are labeled using the following format: ARCHIE_1-03-02-22. It may also be worth noting that the drive where these files are located is a network drive. In some cases more than half of the photos in the original files are copied to outdir as corrupted files. Aany suggestions?
# Where the photos are
orig_photos <- "Z://Post-Fire_Monitoring_Data/ARCHIE_CREEK/Photo_Data/Original_Photos/ARCHIE_1"
# Where the photos go
renamed_photos <- "Z://Post-Fire_Monitoring_Data/ARCHIE_CREEK/Photo_Data/Processed_Photos/ARCHIE_1"
imageRename(inDir = orig_photos,
outDir = renamed_photos,
hasCameraFolders = F,
keepCameraSubfolders = F,
writecsv = TRUE,
copyImages = TRUE,
createEmptyDirectories = TRUE)