You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Batch resizer is a small utility script that looks at a directory and processes all images in it in some way. You can resize them, convert them into other formats or bundle them together in a nice compressed archive, ready to be uploaded. Some examples:
6
+
Process images by converting them to different formats, resizing them and store them as compressed archives for easy upload to your cloud. You may provide one or more images and they'll be processed in parallel for extra speed. File metadata like GPS location, camera model, etc., is completely removed.
7
+
8
+
- TODO: add support to embed watermark image
9
+
- TODO: add support to resize to multiple sizes at once
10
+
- TODO: create output directory if does not exist
7
11
8
12
```
9
-
# Resize all images to a specified width and height (aspect ratio preserved)
10
-
$ resizer.py ~/Pictures --resize 1200 1200
13
+
# Resize images to a specified width and height (aspect ratio preserved)
14
+
$ resizer.py ~/Pictures/* --resize 600 600
15
+
16
+
# Convert images to the specified format or formats (JPEG, PNG or WEBP)
17
+
$ resizer.py ~/Pictures/* --format jpeg webp
11
18
12
-
# Convert all images to the specified format (jpg, png or webp)
13
-
$ resizer.py ~/Pictures --format webp
19
+
# Provide target directory for output images
20
+
$ resizer.py ~/Pictures/* --output ~/Desktop
21
+
22
+
# Create an archive for the output processed images with a custom name
Check your passwords against the popular "Have I Been Pwned?" website and find out if they've been leaked in any of the increasingly common data breaches. Your passwords provided to the script will remain secured as only a hash is used, as per the Have I Been Pwned API requires.
17
29
18
-
# Resize images to 1200x1200 pixels, convert them to webp format,
19
-
# store them in the desktop, compressed as a .tar.gz archive and delete all of the
You can provide passwords inline or through a CSV file, ideal if your password manager (such as KeePassXC) supports exporting data in CSV format. For security you can instruct the script to securely delete that file from your hard drive by overwriting the original contents with random bytes before deleting it.
Check your passwords against the popular "Have I Been Pwned?" website and find out if they've been leaked in any of the increasingly common data breaches. Your passwords provided to the script will remain secured as only a hash is used, as per the Have I Been Pwned API requires.
51
-
52
-
You can provide passwords inline or through a CSV file, ideal if your password manager (such as KeePassXC) supports exporting data in CSV format. For security you can instruct the script to securely delete that file from your hard drive by overwriting the original contents with random bytes before deleting it.
"Nama" means name in some languages such as Malay or Indonesian. This small utility script will help organize any collection of files by renaming them uniformly, adding prefixes and sufixes, custom separators, etc. Ideal for music, images, books and other types of documents that have uneven format (mixed of uppercase and lowercase, underscores with spaces, etc). Before, and after:
0 commit comments