MULTI-CONVERT - LINUX (UBUNTU)
Multi-Convert is a tool based on the ubuntu tool convert. Multi-Convert simply helps in bulk conversion of your
images.
Clone repository into your ~/ directory
Go to your home directory on your terminal:
$ cd ~
Clone multi-convert into your home directory:
$ git clone https://github.com/hfally/multi-convert.git
Add $HOME/multi-convert/bin to your PATH.
Run the command below. There is 70% chances you are using the default bash terminal, but if you happen to be using
another like zsh switch .baschrc for .zshrc in the command below.
$ echo 'export PATH="$PATH:$HOME/multi-convert/bin"' >> .bashrc
You will need to source your .bashrc or logout/login (or restart the terminal) for the updates to take effect. To source your .bashrc, simply run:
$ source ~/.bashrc
if you use zsh or any other shell, follow the same route (switching .bashrc as staeted previously)
-
Go to your workspace on the terminal
$ cd /path-to-images/REPLACE
path-to-imageswith the correct path to all your images -
Run the command below to do the conversions
$ multi-convert EXT DEFAULT-CONVERT-ARGUMENTSREPLACE
EXTwith the file extension of the images you want to convert, e.g jpg, JPG, png, etcREPLACE
DEFAULT-CONVERT-ARGUMENTSwith the normal arguments you would have given theconverttool except the file path. You can give as many argument as you want. EXCEPT the file pathExamples of
convertArguments:- -strip
- -interlace
- -quality
- -resize
You can read more on the convert tool by running:
$ convert -help
That's it!
You can always get help through $ multi-convert help
-
You can use this tool to resize your bulk images with just one simple command.
$ multi-convert jpg -resize 1029x -
You can use this tool to reduce quality of images
$ multi-convert jpg -quality 70% -
You can run multiple conversion commands once
$ multi-convert jpg -resize 1029x -quality 70%
This commands will not touch your original images, instead, they will create a new folder and store the converted ones there. The folder's naming structure is multi-TIMESTANP.
Ubuntu is the only supported distro for now, however, its likely it works on Debian too.
Multi-Convert is open-sourced software licensed under the MIT license
For contribution and personal bug reporting, send a mail to the author tofex4eva@yahoo.com