Comments (8)
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.
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.
[deleted comment]
from zopfli.
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.
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.
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.
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.
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)
- Compile error: divide or mod by zero in lodepng HOT 9
- how to working in iOS? HOT 1
- Do not emit compressed files larger than the input
- Add lgtm to the repo and fix its issues
- better cmake build
- compiler warnings
- Order of colors in PLTE not kept anymore
- Zopflipng picks up crc errors in input files, offers to disable checks, but no crc check disable switch found
- Null Dereference
- Would you please describe the zopfli block-splitting heuristic? HOT 1
- using `--lossy_transparent` option sometimes results in higher file size
- Incorrect ZopfliPNG static library build rule
- verification of result failed HOT 1
- Time for a new release? HOT 2
- Document ZopfliDeflate parameters
- Assertion failed on ZopfliCalculateBitLengths at zopfli/src/zopfli/tree.c:100
- unnecessary `else` statement.
- Android
- OSS-Fuzz issue 57919
- One order HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zopfli.