Skip to content

ThisIsNoahEvans/Resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resizer

A simple and fast tool to resize images in various formats.

Usage

Resize images by specifying the file paths and desired sizes:

  • Square Size: Resize to a square by providing a single number:

./resizer <image_path> 1024

  • Exact Size: Specify width and height with 'x':

./resizer <image_path> 500x300

  • Multiple Sizes: Separate sizes with spaces:

./resizer <image_path> 512x512 1024x1024

  • Multiple Images: Include multiple images, even using wildcards:

./resizer images/* 1024x1024 ./resizer img1.png img2.png 512x512 1024x1024

Supported formats: JPEG, PNG, GIF.

Output files are saved in the same directory as the source, appended with the specified size. For example, ./resizer /path/to/image.png 1024 creates /path/to/image_1024x1024.png.

Speed

Using test.sh, a very quick test I wrote, Resizer is 21 seconds faster than ImageMagick

Comparison:
Resizer: 23 seconds
ImageMagick: 44 seconds