Giter VIP home page Giter VIP logo

pngquant-epel-package-issue's Introduction

PngQaunt EPEL repository issue

Only affecting CentOS 7

The problem package can be found here pngquant-2.12.5-1.el7.x86_64.rpm.

On CentOS 7 using package pngquant-2.12.5-1.el7.x86_64 with the following command produces a 2-color image. It should be a 256-color image.

Command
pngquant --output pngquant-output.png --speed 1 --force -v -- pngquant-input.png
Output
pngquant-input.png:
  read 2019KB file
  used embedded ICC profile to transform image to sRGB colorspace
  made histogram...44630 colors found
  selecting colors...3%
  selecting colors...7%
  selecting colors...11%
  selecting colors...14%
  selecting colors...18%
  selecting colors...22%
  selecting colors...25%
  selecting colors...48%
  selecting colors...70%
  selecting colors...92%
  selecting colors...100%
  moving colormap towards local minimum
  eliminated opaque tRNS-chunk entries...0 entries transparent
  mapped image to new colors...MSE=553.309 (Q=0)
  writing 2-color image as pngquant-output.png
Quantized 1 image.
Image Input:

Input

Image Output:

Output

Expected Output
pngquant-input.png:
  read 2019KB file
  used embedded ICC profile to transform image to sRGB colorspace
  made histogram...44630 colors found
  selecting colors...3%
  selecting colors...7%
  selecting colors...11%
  selecting colors...33%
  selecting colors...37%
  selecting colors...59%
  selecting colors...81%
  selecting colors...100%
  moving colormap towards local minimum
  eliminated opaque tRNS-chunk entries...0 entries transparent
  mapped image to new colors...MSE=1.740 (Q=94)
  writing 256-color image as pngquant-output.png
  copied 2KB of additional PNG metadata
Quantized 1 image.

Setup

For any of the tests to work, you will need to build the local docker images, to build these run the relevant build script for your OS.

Linux

bash dockerfiles/build.sh

Windows

call dockerfiles/build.bat

Tests

These tests use docker containers to automate tests on different OS versions with the latest package installed via the default repo.

Change OS version accordingly.

Linux

bash tests/test-centos-version.sh {VERSION}

Windows

call tests/test-centos-version.bat {VERSION}

Example

Test all OS versions

Linux

bash tests/test-centos-version.sh 6
bash tests/test-centos-version.sh 7
bash tests/test-centos-version.sh 8

Windows

call tests/test-centos-version.bat 6
call tests/test-centos-version.bat 7
call tests/test-centos-version.bat 8

Input/Output Storage

The input pngquant-input.png and output pngquant-output.png images can be found in the tests/CentOS-{6-8}/data folder.

These are removed every time the test is run.

Custom Image

Currently, this pulls an image from GitHub.

You can change the code in scripts/test-pngquant.sh to use a different image.


Builds

These builds use docker containers to compile PngQuant to replicate the failed and successful build process.

Failed

The build that replicates the issue can be found at builds/failed.

Linux

bash builds/failed/test.sh

Windows

call builds/failed/test.bat
Successful

The build that fixes the issue can be found at build/successful.

Linux

bash builds/successful/test.sh

Windows

call builds/successful/test.bat

pngquant-epel-package-issue's People

Contributors

joejordanbrown avatar

Watchers

James Cloos avatar  avatar  avatar

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.