Comments (2)
The failure has nothing to do with the file's size, though it is quite large.
This compressed file violates one of the restrictions listed in https://github.com/ionescu007/minlzma/#limitations-and-restrictions:
- The LZMA2 property byte must indicate the LZMA properties
lc = 3
,pb = 2
,lc = 0
(This is actually a documentation typo: it should read lc = 3
, pb = 2
, lp = 0
)
Specifically, this file uses a property byte that indicates lc = 5
, pb = 3
, lp = 1
. I don't know what compression utility could create such a file.
If I decompress the file with some other lzma decompression tool and recompress it with xz
using default options then the resulting file decompresses with minlzdec just fine. However, that compressed file is then 4291368 bytes instead of 4203108 bytes in the original. (so roughly 2% larger)
If I use xz -8
to compress the file, I get much closer to the original at 4209788 bytes.
I was unable to find a combination of options to xz
that could exactly reproduce the original file. Also, every set of options I tried with xz
produced a file that minlzdec
could decompress; how are you compressing the original text?
from minlzma.
Having re-read your comment, I tried again with 7-zip
.
Indeed, 7-zip
will by default compress this file with a property byte other than the usual one of lc = 3
, pb = 2
, lp = 0
and will produce a compressed file which minlzdec
cannot decompress. However, xz
will not produce a file that minlzdec
can't handle, even with the -e
option, nor will python's lzma
module unless you supply a custom filter chain.
Figuring out why 7-zip
uses an unusual LZMA2 property byte with this file will require a deeper dive into the 7-zip source code than I have time for tonight.
from minlzma.
Related Issues (8)
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 minlzma.