I'm a Python, Linux, Nix/NixOS, JavaScript, Rust, ... basically everything open-source enthusiast.
Image re-size

Re-size of jpg/jpeg images command.

I have written a small bash script that re-sizes images with jpeg or jpg file extension. It will process all images in the current working directory and all sub-directories, images will not be replaced, but saved to temp folder.

Usage examples:

This will re-size images to 500px width (will keep aspect ratio):

$ resizejpgs 500

This will make the images smaller by 40% of original image size:

$ resizejpgs 60%

Here is the script.

(do not forget to add it to some …/bin/ folder and make it executable)