ImageMinify



ImageMinify

Gogs is a painless self-hosted Git service. TTF Font Viewer Tool Online How to view TTF file? Devstudio provide a tool to view TTF font and icons. Use this TTF Viewer tool. Try & bookmark now.

Minify
GIF
Minify
# gif > png8
@echo off
set CONVERT=D:SoftwarePICImageMagick-6.8.3-6convert.exe
for %%a in (%*) do (
dir /a %%a|findstr 'DIR' >nul 2>nul && (
'%CONVERT%' %%a '%%~dpna.png*'
) || (
'%CONVERT%' %%a '%%~dpna.png'
)
)
JPEG
# jpg > tran > progressive jpeg
@echo off
set JPEGtran=D:SoftwarePICjpegtranjpegtran.exe
for %%a in (%*) do (
dir /a %%a|findstr 'DIR' >nul 2>nul && (
'%JPEGtran%' -copy none -optimize -perfect %%a '%%~dpna_tran%%~xa'
rename '%%~na%%~xa' '%%~na_0%%~xa'
'%JPEGtran%' -copy none -optimize -perfect -progressive '%%~dpna_tran%%~xa' '%%~dpna_tran_p%%~xa*'
) || (
'%JPEGtran%' -copy none -optimize -perfect %%a '%%~dpna_tran%%~xa'
rename '%%~na%%~xa' '%%~na_0%%~xa'
'%JPEGtran%' -copy none -optimize -perfect -progressive '%%~dpna_tran%%~xa' %%~dpna_tran_p%%~xa
)
)
Image
PNG
# png > 8bit > crush
set PNGquant=D:SoftwarePICPNGquantpngquant.exe
set PNGcrush=D:SoftwarePICpngcrushpngcrush.exe
for %%a in (%*) do (
dir /a %%a|findstr 'DIR' >nul 2>nul && (
'%PNGquant%' -ext _8bit.png -iebug -force -verbose 256 %%a
rename '%%~na%%~xa' '%%~na_0%%~xa'
'%PNGcrush%' -rem alla -brute -reduce '%%~dpna_8bit%%~xa' '%%~dpna%%~xa*'
) || (
'%PNGquant%' -ext _8bit.png -iebug -force -verbose 256 %%a
rename '%%~na%%~xa' '%%~na_0%%~xa'
'%PNGcrush%' -rem alla -brute -reduce '%%~dpna_8bit%%~xa' %%~dpna%%~xa
)
)

Online Image Compressor

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment