Loseless PNG, JPEG and GIF optimization / compression tool for Windows.
https://github.com/lorents17/iCatalyst
Loseless PNG, JPEG and GIF optimization / compression tool for Windows.
https://github.com/lorents17/iCatalyst
Jaff (30th May 2015),just a worm (29th May 2015)
Could you please give some information about the png-optimization tools? In the directory there are the files with their names but I have no idea what the tools do.
For example I am looking for a tool that recursivly goes through a directory and decreases the size of all png files and doesn't touch any other/non-png file. I think I have already seen it here on encode.su but I don't know it's name anymore.
Please compile the program for windows
https://github.com/rflynn/imgmin
Last edited by lorents17; 2nd June 2015 at 00:11.
Good day! Prompt, please, the program for optimizing JPEG lossy?
I found:
https://github.com/danielgtaylor/jpeg-archive
https://github.com/rflynn/imgmin
https://github.com/tjko/jpegoptim
Prompt, a metric for comparing two images. Watched MSU Quality Measurement Tool, but can't understand which metrics best suited for visual change in image quality?
I might be misunderstanding this, but can't you do this with any command line .png optimizer like .e.g PNGout?
for /r %r in (*.png) do pngout.exe "%r"
Thats how i do it, except i call my batch file that runes multiple optimizations on a .png file. sometime my pc wwill chunk for week on an entire tree structure with .png files all over the place
Tell me, please, how to compile under windows the following projects
https://github.com/rflynn/imgmin
Last edited by lorents17; 4th June 2015 at 00:40.
Well, you can try to use makefile files from every project.
At first you need to get some GCC distro. For example MinGW-w64. In case you're confused which version to use - grab the x86-posix-dwarf from here.
Now create batch file like this:
Place this batch to the root of the desired source and run it.Code:rem set path to bin folder of mingw set path=d:\MingW\Mingw64\32-win32-dw\bin mingw32-make.exe -f makefile pause exit
Probably you'll get nothing just out-of-the-box. The reason is that there are some dependencies which you need to get and probably makefiles are not error-free so you need to edit them, like for example changing @SET_MAKE@ to SET_MAKE = @SET_MAKE@ for JpegOptim. And even if you made everything correctly there can be other unpredictable errors.
Another method is to use MSYS2 which has some native Linux tools ported to Win so it can do configure\make sequence.
And another method is to use cross-compiler directly from Linux but I have no experience here so I can't say for sure.
Anyway, good luck in your efforts.
If you don't mind, please make a compilation of the project
https://github.com/rflynn/imgmin
I would be very grateful
Back when I first saw imgmin, I gave up trying it because there was no obvious way to compile it on Windows.
Yesterday I took another look, and got it to at least compile with mingw-w64. The attached archive contains some patches and build instructions, along with a static Win64 compile of imgmin 1.1.
Please note this is more or less just a proof of concept that it is possible to compile it, and it may not work like it is supposed to. Also, I had to remove the PNG handling, so it only works on JPEG files.
Thanks jibz for compile.
this is my bat file. Compress each jpg file and then create new file processed "namefile_proc.jpg" and delete the original.
Code:@echo off title Imgmin :: for /r . %%T IN (*.jpg) do ( @imgmin "%%T" "%%~pT%%~nT_proc.jpg" del "%%T" ) pause
jibz Thank you very much!
Tell me, what technology does for JPEG optimization https://tinyjpg.com/
del
Last edited by lorents17; 12th June 2015 at 00:22.
Image quality metrics
http://imq.vt.tpu.ru/indexeng.html
Last edited by lorents17; 12th June 2015 at 01:46.
Found an interesting pattern.
If the value zs=3 (zlib), it is better to use --zopfli-iter=25, for best compression. Who knows why this is happening?Code:Microsoft Windows [Version 10.0.10240] (c) Корпорация Майкрософт (Microsoft Corporation), 2015 г. Все права защищены. C:\Users\loren>C:\Users\loren\Desktop\Logo\truepng.exe -zc7 -zm1-9 -zs0-3 -fe -force C:\Users\loren\Desktop\Logo\1064.png TruePNG 0.6.0.0 : PNG Optimizer by x128 (2010-2015) x128@ua.fm Input file: 1064.png | 237773 bytes Image: 512x512 pixels | 8 bits/sample | RGB & Alpha Delta filter: Mixed Chunks: only critical Output format: 8 bits/sample | RGB & Alpha Chunks: only critical try... IDAT=237722 file=237779 complete=100% extra... fs:1 f:5 IDAT=237716 file=237773 best: zc:7 zm:9 zs:3 fs:1 f:5 IDAT=237716 file=237773 C:\Users\loren>C:\Users\loren\Desktop\Logo\pngwolfzopfli.exe --zopfli-iter=5 --zopfli-maxsplit=0 --zlib-window=15 --zlib-level=7 --zlib-memlevel=9 --zlib-strategy=3 --max-stagnate-time=0 --max-evaluations=1 --in=C:\Users\loren\Desktop\Lo go\1064.png --out=C:\Users\loren\Desktop\Logo\1064.png --- # 512 x 512 pixels at depth 8 (mode 6) with IDAT 1049088 bytes (237716 deflated) --- --- # IDAT 13563 bytes smaller C:\Users\loren>C:\Users\loren\Desktop\Logo\pngwolfzopfli.exe --zopfli-iter=25 --zopfli-maxsplit=0 --zlib-window=15 --zlib-level=7 --zlib-memlevel=9 --zlib-strategy=3 --max-stagnate-time=0 --max-evaluations=1 --in=C:\Users\loren\Desktop\L ogo\1064.png --out=C:\Users\loren\Desktop\Logo\1064.png --- # 512 x 512 pixels at depth 8 (mode 6) with IDAT 1049088 bytes (224153 deflated) --- --- # IDAT 8026 bytes smaller C:\Users\loren>C:\Users\loren\Desktop\Logo\pngwolfzopfli.exe --zopfli-iter=50 --zopfli-maxsplit=0 --zlib-window=15 --zlib-level=7 --zlib-memlevel=9 --zlib-strategy=3 --max-stagnate-time=0 --max-evaluations=1 --in=C:\Users\loren\Desktop\L ogo\1064.png --out=C:\Users\loren\Desktop\Logo\1064.png --- # 512 x 512 pixels at depth 8 (mode 6) with IDAT 1049088 bytes (216127 deflated) --- --- # IDAT 230 bytes smaller C:\Users\loren>
Last edited by lorents17; 31st August 2015 at 16:49.
And further
This image pngout shakes much better zopfli. How can I fix it?
Code:Microsoft Windows [Version 10.0.10240] (c) Корпорация Майкрософт (Microsoft Corporation), 2015 г. Все права защищены. C:\Users\Lorents>C:\Users\Lorents\Desktop\iCatalyst\Tools\apps\truepng.exe -o4 C :\Users\Lorents\Desktop\gXKKrNB.png TruePNG 0.6.0.0 : PNG Optimizer by x128 (2010-2015) x128@ua.fm Input file: gXKKrNB.png | 651914 bytes Image: 800x1200 pixels | 8 bits/sample | RGB Delta filter: None Chunks: only critical Output format: 8 bits/sample | RGB Chunks: only critical try... IDAT=651527 file=651584 complete=100% extra... best: zc:9 zm:8 zs:0 fs-: f:0 IDAT=651527 file=651584 C:\Users\Lorents>C:\Users\Lorents\Desktop\iCatalyst\Tools\apps\pngwolfzopfli.exe --zopfli-iter=15 --zopfli-maxsplit=0 --zlib-window=15 --zlib-level=9 --zlib-mem level=8 --zlib-strategy=0 --max-stagnate-time=0 --max-evaluations=1 --in=C:\User s\Lorents\Desktop\gXKKrNB.png --out=C:\Users\Lorents\Desktop\gXKKrNB.png --- # 800 x 1200 pixels at depth 8 (mode 2) with IDAT 2881200 bytes (651527 deflated ) --- --- # IDAT 58768 bytes smaller C:\Users\Lorents>C:\Users\Lorents\Desktop\iCatalyst\Next\pngout.exe -ks -f6 C:\U sers\Lorents\Desktop\gXKKrNB.png In: 592816 bytes C:\Users\Lorents\Desktop\gXKKrNB.png /c2 /f0 Out: 586966 bytes C:\Users\Lorents\Desktop\gXKKrNB.png /c2 /f6 Chg: -5850 bytes ( 99% of original) C:\Users\Lorents>
Tell me, how to compile dssim for windows?
https://github.com/pornel/dssim
Found
http://css-ig.net/tools/public/
Last edited by lorents17; 24th September 2015 at 01:49.
good evening!
Tell me, has anyone seen advancecomp with an updated version of 7-zip deflate? Or another program with functions advdef?
Last edited by lorents17; 29th October 2015 at 01:34.
Dear participants of a forum!
I wanted to talk about the libdeflate project.
Code:Lorents@ASUS MINGW32 ~ $ time '/c/Program Files/7-Zip/7z.exe' a -r -mm=Deflate -y -tgzip -mpass=2 -mfb=258 -mx9 -mmt=off /c/Users/Lorents/Desktop/enwik8.gz /c/Users/Lorents/Desktop/enwik8 7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 Scanning the drive: 1 file, 100000000 bytes (96 MiB) Creating archive: C:/Users/Lorents/Desktop/enwik8.gz Items to compress: 1 Files read from disk: 1 Archive size: 35110519 bytes (34 MiB) Everything is Ok real 0m34.629s user 0m0.000s sys 0m0.000s Lorents@ASUS MINGW32 ~ $ time /c/Users/Lorents/Desktop/ECT.exe -2 -gzip /c/Users/Lorents/Desktop/enwik8 Processed 1 file Saved 61.65MB out of 95.37MB (64.6497%) real 0m23.478s user 0m0.000s sys 0m0.000s Lorents@ASUS MINGW32 ~ $ time /c/Users/Lorents/Desktop/ECT.exe -3 -gzip /c/Users/Lorents/Desktop/enwik8 Processed 1 file Saved 61.98MB out of 95.37MB (64.9861%) real 0m30.082s user 0m0.000s sys 0m0.000s Lorents@ASUS MINGW32 ~ $ time /c/Users/Lorents/Desktop/ECT.exe -4 -gzip /c/Users/Lorents/Desktop/enwik8 Processed 1 file Saved 62.02MB out of 95.37MB (65.0324%) real 0m35.125s user 0m0.000s sys 0m0.000s Lorents@ASUS MINGW32 ~ $ time /c/Users/Lorents/Desktop/X2/gzip.exe -k -12 /c/Users/Lorents/Desktop/enwik8 real 0m22.608s user 0m0.000s sys 0m0.000sibdeflate has good extent of compression and high speed of work. There was an idea to create the application on compression of PNG on the basis of libdeflate (on similarity of advdef).Code:7-zip -mpass=2 -mfb=258 -mx9 - 35 110 519 byte ect -2 - 35 350 269 byte ect -3 - 35 013 879 byte ect -4 - 34 967 607 byte gzip -12 - 35 100 553 byte
I will be grateful if somebody writes such application on the basis of libdeflate.dll.
AndCode:for %%i in (PNG\*) do ( krzydefc --gzipname "%%i" 7za x "%%i.gz" gzip -12 "%%~dpni" krzydefc --png"%%~i" "%%~dpni.gz" del "%%i.gz" del "%%~dpni.gz" move /y "%%~dpni.gz.png" "%%i" )
Please, help to compile optipng with support of masmx86.