Rename all sub directories directories and

delete by distinct improvements
This commit is contained in:
2023-01-10 19:04:49 -07:00
parent be8829bbcd
commit fbaafe0137
6 changed files with 60 additions and 21 deletions

32
.vscode/launch.json vendored
View File

@ -350,4 +350,34 @@
// If not Hog and Original image size resize face
// New json file with known locations at original image size
// Add person to metadata when saving to SaveFilteredOriginalImagesFromJLinksForOutputResolutions maybe SaveMappedForOutputResolutions
// GetFaceLocations
// GetFaceLocations
// Stream stream;
// FileType fileType;
// const string abd = ".abd";
// List<string> jsonGroupFiles = GetFileCollection(jsonGroupFileCollection);
// foreach (string jsonGroupFile in jsonGroupFiles)
// File.Move(jsonGroupFile, string.Concat(jsonGroupFile, abd));
// stream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read);
// fileType = FileTypeDetector.DetectFileType(stream);
// stream.Close();
// stream.Dispose();
// if (fileType == FileType.Unknown)
// continue;
// if (!isUniqueFileName || string.IsNullOrEmpty(resultAllInOneKey))
// {
// if (!isUniqueFileName && !string.IsNullOrEmpty(resultAllInOneKey))
// File.Move(Path.Combine(resultAllInOneKey, fileName), Path.Combine(resultAllInOneKey, $"{fileName}.del"));
// resultAllInOneKey = string.Concat(jsonGroupDirectory, directoryName[length..]);
// }
// if (!jsonGroupFileCollection.TryGetValue(resultAllInOneKey, out keyValuePairs) || !keyValuePairs.TryGetValue(fileName, out collection))
// fileAndJsonGroupFiles.Add(new FileAndJsonGroupFile(file, isUniqueFileName, Path.Combine(resultAllInOneKey, fileName), false));
// else
// {
// foreach (string jsonGroupFile in collection)
// // File.Move(string.Concat(jsonGroupFile, abd), jsonGroupFile);
// fileAndJsonGroupFiles.Add(new FileAndJsonGroupFile(file, isUniqueFileName, jsonGroupFile, true));
// }
// C:\Program Files\ImageMagick-7.1.0-Q16-HDRI>identify -format '%Q' "D:\7) Question\- - - Images\Mike Goolgle Photos 2014\-1507651551.jpg"
// '98'
// C:\Program Files\ImageMagick-7.1.0-Q16-HDRI>identify -format '%Q' "D:\7) Question\- - - Images\Mike Goolgle Photos 2014\197616258.jpg"
// '90'