Image Converter

Quickly optimize images and standardize formulas with ImageMagick

1) Upload Images

Maximum file size of 100 MB and up to 10 files in each payload.


Upload

2) Set Output Type

ImageMagick works best with the JPEG file format. Something like TinyPNG is more suitable for PNG files.



3) Set Options

Set both dimensions to 0 or leave blank to retain original size. If one dimension is 0 or blank and the other is set, the aspect ratio will be preserved.
Maximum 4096px for a single dimension, pre-resize.


Quality


4) Compute

Large inputs and non-JPEG outputs will take a longer time to process.
Selected options are represented below for offline usage.






Additional Tools

Options permalink:


Windows

Installation:

ImageMagick binaries available here.


Command Line:
convert ...

Batch script:

Save this as something like Image Converter.bat and drop it in the same directory as your images. Optimized images will be generated in the "Output" folder.

@echo off
setlocal enabledelayedexpansion
title Image Converter

:initialize
where convert>nul
if %ERRORLEVEL% neq 0 goto errorInit
if not exist "%cd%/Output" mkdir "%cd%/Output"

:format
set /a count = 0
for %%f in (*.jpg *.png *.gif) do (
    echo Processing %%f...
    convert ...
    if %ERRORLEVEL% neq 0 goto errorFormat
    set /a count += 1
)
echo  ^> !count! image(s) formatted successfully
goto eof

:errorInit
echo  ^> ImageMagick is not installed on your system. Get a binary at:
echo     https://www.imagemagick.org/download/binaries/
goto eof

:errorFormat
echo Error converting file!
goto eof

:eof
pause>nul
endlocal
exit /B


*NIX

Installation:
sudo apt install imagemagick # Debian-based
sudo yum install imagemagick # CentOS/RHEL
brew install imagemagick # macOS

Command Line:
convert ...

Bash script:
#!/bin/bash
cd "$(dirname "$0")" || return

if [[ -n "$(command -v convert)" ]]; then
    echo " > ImageMagick is not installed on your system. Install it with:" >&2
    if [[ -n "$(command -v apt-get)" ]]; then echo " sudo apt-get install imagemagick"; fi
    if [[ -n "$(command -v yum)" ]]; then echo " sudo yum install imagemagick"; fi
    if [[ -n "$(command -v brew)" ]]; then echo " brew install imagemagick"; fi
    exit 1
fi

mkdir -p output > /dev/null
count=0
for i in *.jpg *.png *.gif; do
    echo "Processing $i..."
    convert ...
    if [ $? -ne 0 ]; then
        echo "Error converting file!" >&2
        exit 2
    fi
    (( count += 1 ))
done
echo " > $count image(s) formatted successfully"