Git Product home page Git Product logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
This is not supposed to happen. Which zopfli settings did you use? Are the 
output files correct (decompress to the original file without error) in both 
cases? Which compiler did you use on each platform? Thanks.

Original comment by [email protected] on 5 Jun 2013 at 2:50

from zopfli.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
The Ubuntu box is a Travis CI VM. You can check the logs here: 
https://travis-ci.org/mathiasbynens/grunt-zopfli/jobs/7485621#L291

As you can see, to install Zopfli v1.0.0 I use the following commands:

    curl -O "https://zopfli.googlecode.com/files/zopfli-1.0.0.zip"
    unzip zopfli-1.0.0.zip; cd zopfli-1.0.0
    make
    chmod +x zopfli
    export PATH="$(pwd):${PATH}"
    cd ..

`make` results in the following:

    gcc src/zopfli/*.c -O2 -W -Wall -Wextra -ansi -pedantic -lm -o zopfli

I’ve compiled Zopfli v1.0.0 with exactly this same command on my OS X box but 
I’m still getting different results compared to the Travis CI VM (which is 
causing my project’s tests to fail).

The Zopfli settings vary for each one of the tests, but on both machines the 
same settings are being used for each test. The settings are hardcoded here: 
https://github.com/mathiasbynens/grunt-zopfli/blob/f4ea75338876d15b0f6051114bd96
8bb861e2cd6/Gruntfile.js#L11-L65

Here’s another log where I tried to compare the MD5 hashes of the expected 
resulting files with the actual result. On my OS X box the files are identical, 
but on the Ubuntu box, the files generated by Zopfli differ from the expected 
output. https://travis-ci.org/mathiasbynens/grunt-zopfli/jobs/7815241#L342

I’m stumped.

Original comment by [email protected] on 5 Jun 2013 at 6:16

from zopfli.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
[deleted comment]

from zopfli.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
I forgot to mention, the generated files on my OS X box decompress just fine.

Original comment by [email protected] on 5 Jun 2013 at 6:17

from zopfli.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Is there an easy way to test Zopfli’s output when the `deflate` or `zlib` 
output formats are used, i.e. to decompress Zopfli’s `deflate`/`zlib` output?

Original comment by [email protected] on 16 Jun 2013 at 11:53

from zopfli.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
Re: #5: Got it: to decompress `zlib`: use inflate; to decompress `deflate`: use 
raw inflate (no header).

Original comment by [email protected] on 17 Jun 2013 at 5:05

from zopfli.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
I noticed this too.
I write a program to compress png using zopflipng library. I compiled it using 
vs2013 and mingw.
For 99% of the png files I tested, the two results are the same, but I found a 
png that if compressed with vs2013 build, the result will be 5 bytes smaller 
than mingw every time.

Options I use:
    ZopfliPNGOptions zopflipng_options;
    zopflipng_options.lossy_transparent = true;
    zopflipng_options.block_split_strategy = 3;
all other options are default.

Original comment by jayxon on 16 Apr 2014 at 1:34

Attachments:

from zopfli.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
The best possible explanation so far is that the double floating point 
arithmetic works slightly different on each...

Original comment by [email protected] on 23 May 2014 at 2:28

from zopfli.

Related Issues (20)

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.