Coder Social home page Coder Social logo

jpegoptim-windows's Introduction

jpegoptim for Windows

Build Status

This is just my own project files for easy building of jpegoptim with mozjpeg and Microsoft Visual Studio. Currently only 64-bit (x64) is targeted.

Notes

  • Multithreaded; no need for the MSVC Runtime to be installed separately
  • Built with LTCG
  • Runs on Windows Vista and newer

Build Instructions

  1. Clone the repository

    git clone --recursive https://github.com/XhmikosR/jpegoptim-windows.git

    Alternatively you can do this:

    git submodule init
    git submodule update --recursive
  2. Download and install Visual Studio 2022 (any edition)

  3. Download nasm and place nasm.exe somewhere into your PATH

  4. Open jpegoptim.sln and build, or run build.bat

Sample scripts

WARNING: The following scripts optimize the images in place! Remember to make a backup before running them.

Here's a sample script that loops through only the first-level subfolders in a folder optimizing all pictures:

for /f "tokens=*" %%i in ('dir /a:d /b') do (
  jpegoptim.exe --preserve --strip-all --totals --verbose "%%i\*.jpg"
)

Here's another sample script that loops through all subfolders in a folder optimizing all pictures:

for /f "delims=" %%i in ('dir /b /s *.jpg') do (
  jpegoptim.exe --preserve --strip-all --verbose "%%i"
)

jpegoptim-windows's People

Contributors

borekon avatar dependabot[bot] avatar xhmikosr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jpegoptim-windows's Issues

Parallel processing support in 1.5.1?

Should this parallel processing work? Even no mention in help output --help

AFAIK this -w option works since version 1.5.0.
>>Parallel processing support added. Use option -w max or --workers=max to enable.

I built Timo's jpegoptim under Ubuntu and the -w worked just fine
This Windows build seems to have no this option enabled
I am correct?

I really need this parallel processing under Windows... Is there a way to get it?

Thank you

Enable experimental --with-arith

According to 1.4.7 changelog --with-arith experimental option is available if compiled with support to it.
Can you please build it with such option?

Error if path to solution contains whitespaces

Hi just want to mention that the build breaks if the path where the solution is at contains white spaces:

e.g. C:\Users\Name Name\...

It gives a multiple input files error when trying to run NASM.

in src\nasm.targets: line 52:

OutputFormat="%(NASM.OutputFormat)" needs to be changed to
OutputFormat=""%(NASM.OutputFormat)""

Multithreaded support

Version 1.5.0 of jpegoptim added the --workers flag to set parallel workers to process all the images. Would it be possible to add this option to the Windows version?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.