Giter Club home page Giter Club logo

gimp-guetzli's Introduction

gimp-guetzli

GIMP plugin to enable exporting via Google's Perceptual JPEG encoder.

Taken from the Googe Guetzli GitHub Page:

Guetzli is a JPEG encoder that aims for excellent compression density at high visual quality. Guetzli-generated images are typically 20-30% smaller than images of equivalent quality generated by libjpeg. Guetzli generates only sequential (nonprogressive) JPEGs due to faster decompression speeds they offer.

Example

Uncompressed 137.3kB:

Uncompressed Image

Compressed 19.4kB:

Compressed Image

Installation

First of all, install gimp-python and libpng using the following command:

sudo dnf/apt install libpng-devel gimp-python

This plugin requires that you set up Guetzli. The easiest way to do this is to download the newest release from the following page and unzip the binary to your preferred path.

Once you have done that, ensure that the binary is executable by running the following in your terminal:

chmod +x /path/to/binary/guetzli

Now append the path to the Guetzli binary to ~/.profile.

export GUETZLI="/path/to/binary/guetzli"

Once complete, clone this project and copy over the plugin to the default local plugins directory and make it executable.

git clone https://github.com/KeironO/gimp-guetzli/
cp gimp-guetzli/src/guetzli-export.py ~/.config/GIMP/2.10/plug-ins
chmod +x ~/.config/GIMP/2.10/plug-ins/guetzli-export.py

Usage

  1. Open the image you want to export in GIMP.
  2. File > Export As
  3. Select File Type (By Extension) > Google Guetzli (JPEG)
  4. Change the filename to whatever you want.
  5. Export
  6. Drag the slider to whatever compression quality you want and click export.
  7. ???
  8. PROFIT

Important Notes

Note: Guetzli uses a large amount of memory. You should provide 300MB of memory per 1MPix of the input image.

And also:

Note: Guetzli uses a significant amount of CPU time. You should count on using about 1 minute of CPU per 1 MPix of input image.

Oh, and another thing:

Note: Guetzli assumes that input is in sRGB profile with a gamma of 2.2. Guetzli will ignore any color-profile metadata in the image.

License

Code released under the MIT license.

gimp-guetzli's People

Contributors

keirono avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gimp-guetzli's Issues

Lingering duplicate image

Duplicating the image to avoid flattening the original is better, but then you have to delete the duplicate image before you return (gimp.delete(image_copy)), otherwise images will accumulate (and since these images have no Display, users can do much about this).

The other solution (saving a "New from visible" layer) has its merits, it would likely take a lot less RAM than duplicating the image. But of course you have to:

  1. delete the layer before exiting
  2. freeze the undo stack so that users don't lose their own undo steps, and don't restore the temporary layer by doing Undo themselves.

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.