-
Batch Media Compressor: sort all the videos in a folder and compress them with
ffmpeg. For inf -
Batch Upscaler: batch scale images without "blurring" them on macOS using 'pillow'
-
Metadata Remover: using
exiftool -
Weather CLI Tool: written in Go, using data from weather api.
- script to remove files (pics+vids...) that are not in the new version of that folder
- batch scale pixelart
.py->.go - implement features of
weather-cli-learninto weathergo.main
Install ImageMagick on Mac:
In terminal enter $ brew install imagemagick
Assuming your images are in a directory named input and you want to save the upscaled images to a directory named output, you can use the following command:
$ mogrify -path output -resize 1600x1600 -filter point -type TrueColor input/*.png
Warning
The mogrify command modifies the input images in place.
If you want to keep the original images, consider copying them to a new directory before running the command.
path output: Specifies the output directory where the upscaled images will be saved.resize 1600x1600: Sets the maximum size to which the images will be resized. You can adjust these values based on your specific requirements.filter point: Specifies the nearest-neighbor interpolation method, which maintains the pixelated appearance.type TrueColor: Ensures that the output images are in TrueColor format. input/*.png: Specifies the input directory and the type of files to be processed (in this case, all PNG files).
- Install exiftool
$ brew install exiftool - Create a new AppleScript Application
- In Script Editor paste this Exiftool-remove-metadata.scpt
- Save as an Application
- Click on "File" in the menu bar > click "Export" or "Save As"
- Choose "Application" from the "File Format/Format" dropdown menu.
- Click "Save".
- Set Up a Smart Folder
- Open Finder.
- Click on "File" in the menu bar and select "New Smart Folder."
- Click on the "+" button in the top-right corner of the Smart Folder window to add criteria.
- Set the criteria to search for files in the specific folder you want (e.g., Downloads or Desktop).
- Automate the Script Execution
- Move the AppleScript application you created to a convenient location.
- Right-click on the Smart Folder you created and select "Folder Actions Setup."
- Check the box for "Enable Folder Actions" in the Folder Actions Setup window.
- Drag the AppleScript application onto the right side of the Folder Actions Setup window, where it says "Attach folder action:"
- Close the Folder Actions Setup window.
Now, any file you place into the smart folder should trigger the AppleScript, which will attempt to remove metadata using exiftool.
Important
The effectiveness of this approach depends on the specific metadata you want to remove and the file types involved. Also, exiftool might not remove all types of metadata for all file formats.
- EXIF Data (Exchangeable image file format): Camera settings (aperture, shutter speed, ISO, etc.). Date and time information. GPS coordinates. Camera make and model. Software used for processing the image.
- IPTC Data (International Press Telecommunications Council): Caption and description. Keywords. Object name. By-line (photographer's name).
- XMP Data (Extensible Metadata Platform): Extensible metadata in XML format. Often includes information similar to EXIF and IPTC.
- ICC Profiles (International Color Consortium): Color profiles associated with the image.
- Adobe APP14 Segment: Adobe-specific metadata often found in JPEG images.
- MakerNotes: Manufacturer-specific metadata embedded by the camera.
- QuickTime Data: Metadata in QuickTime files (MOV).
- PDF Metadata: Metadata embedded in PDF documents.
- PNG Textual Data: Textual information stored in PNG images.
- Other Formats: exiftool supports a wide range of file types, including various image formats (JPEG, PNG, TIFF, GIF, etc.), audio files, video files, PDFs, and more.
Equally divide the image into 9 equally portions. Is at split-image.py.