mitmelon / compress Goto Github PK
View Code? Open in Web Editor NEWAdvanced file compresser which reduces and encrypts large files to smaller chunks by saving them as binary for later use.
License: MIT License
Advanced file compresser which reduces and encrypts large files to smaller chunks by saving them as binary for later use.
License: MIT License
Fatal error: Uncaught Error: Using $this when not in object context in
PHP 8.1
<?php
require __DIR__ . "/../bootstrap.php";
$compress = new Compress\Compress;
$compress::compressFile(__DIR__.'/original.pdf', __DIR__.'/original.compress.pdf', true);
How to adjust the compressed file to meet specific size?
I think this line introduces a string element in the compressed contents
Compress/Compress/Compress.php
Line 89 in 9db1fe3
The issue is that appears in the decompressed contents, check the s:13517102" at the beginning and the "; at the end of the uncompressed content that makes the output different from the input.
Is the serialize() needed there?
Note: the decompress from this library doesn't seem to show that extra data, but an independent tool was used to decompress for verification https://unix.stackexchange.com/questions/22834/how-to-uncompress-zlib-data-in-unix/240060#240060
So we can update that in our composer file instead of using dev-master as the version, thanks!
packagist is not updated yet.
Hi, I'm checking some large files I'm compressing using this library. I have 800+MB files and the compressed one is about 60MB which seemed OK. Then I use the zlib-flate command to uncompress (https://www.mankier.com/1/zlib-flate) and I get a 100MB file back, which is a truncated version of the original 800+MB file.
I did the test of using zlib-flate to compress and uncompress and I'm getting the same file back, so I think there is something with the compress step from this library that might be cutting the data at 100MB.
Is that possible?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.