diff --git a/tools/readme.md b/tools/readme.md index a2efbfc501..975d589574 100644 --- a/tools/readme.md +++ b/tools/readme.md @@ -1,7 +1,6 @@ # Sample tools -The following tools help manage the sample content for the ArcGIS Runtime SDK for .NET. +The following tools help manage the sample content for the ArcGIS Maps SDK for .NET: * [Metadata tools](metadata_tools/readme.md) - tools for managing sample readmes and metadata. * [Sample generator](sample_generator/readme.md) - adds all the needed files and csproj entries for a new sample, accepting parameters for title, description, formal name, and other properties. -* [Screenshot check](screenshot_check/readme.md) - Reads all of the screenshots in a directory and identifies any with incorrect dimensions. diff --git a/tools/screenshot_check/requirements.txt b/tools/screenshot_check/requirements.txt deleted file mode 100644 index 064a6fd63b..0000000000 --- a/tools/screenshot_check/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -Pillow>=7.2.0 \ No newline at end of file diff --git a/tools/screenshot_check/screenshot_check.py b/tools/screenshot_check/screenshot_check.py deleted file mode 100644 index 1a078723f8..0000000000 --- a/tools/screenshot_check/screenshot_check.py +++ /dev/null @@ -1,30 +0,0 @@ -import os, sys -try: - from PIL import Image -except: - print("There was an error. Do you have Pillow installed?") - exit() - -def check_file(file): - image = Image.open(file) - if (image.size != (800, 600)): - print(f"{file}: expected 800x600, actually was {image.size}") - - -def check_directory(directory): - for root, dirs, files in os.walk(directory): - for file in files: - if file.endswith('.jpg') or file.endswith('.jpeg'): - check_file(os.path.join(directory, root, file)) - -def main(): - if (len(sys.argv) != 2): - print("Usage: python screenshot_check.py C:\\SamplesDotNET\\src\\platform\\viewer.project\\Samples") - return - base_path = sys.argv[1] - - check_directory(base_path) - return - -if __name__ == "__main__": - main() \ No newline at end of file