Category "compression"

LZ77 Extra Bits in DEFLATE

In the LZ77 phase of the DEFLATE compression, extra bits are used to represent the length and distances of the back reference. However, are these extra bits con

How to compress a string consisting of only integers and two characters quickly?

I'm trying to implement custom images in Roblox I'm using method of importing and applying the colors of each pixel, but if I don't compress it, the memory is t

Random access in a 7z file

I have a 100 GB text file in a 7z archive. I can find a pattern 'hello' in it by reading it by 1 MB block (7z outputs the data to stdout): Popen("7z e -so archi

ffmpeg kit flutter video compressor

I am not experienced with ffmpeg. So I'm sorry if I'm asking the wrong question in the wrong place. i am trying to make a video compressor, i add the dependency

When to form a new DEFLATE block?

When compressing a file or directory into a zip file using DEFLATE, when should a new DEFLATE block be formed? Furthermore, since the maximum code length is 15

puff.c How does the huffman decoding work?

I am trying to decompress a raw DEFLATE data stream in order to understand, how the DEFLATE decompression works. I don't care for performance at the moment. I j

i have problem with compress my images please advise me best way, this in my code

I am trying to develop an image_compressor web project. I am confused about the best image type for faster page loading speeds and best compression practices. P

FileZip compression with cancellation

How to cancel long running compression task and release all resources when using ZipFile.CreateFromDirectory or other ZipFile compression methods in C#. Couldn'

Poco addRecursive Not Returning to Normal Program Flow

I implemented Poco in my C++ application for Windows in VS 2019 using tips from this post: How to use Poco::ZIP to compress/decompress zip file I have figured o

too big and bad quality image uploads from react-native expo

I am building an app where employees should be able to upload pictures for a product catalog for a website. The application is built with expo react-native and

Compressing a collection of ISO files with similar content

I have a large collection of ISO files (around 1GB each) that have shared 'runs of data' between them. So, for example, one of the audio tracks may be the same

How to compress a C++ string using Zstd?

I'm very new to C++ and I wanted to compress a std:string object via Zstd compression library, but so far I couldn't find a C++ sample code for this purpose by

Python's zipfile library can't extract password protected file

For some reason, Python's zipfile library cannot extract the files in this password-protected zipfile archive. Here is the code I used: import zipfile zip_file

decompress a doc file using LZS algorithm

https://github.com/sgherro/Exercises-cpp/blob/89bbd78eeac9666ed20f083ebf116e693a8c23ce/Lempel-Ziv-Stac/main.cpp I am using this algorithm to decompress my doc f

Adding a directory to an existing .zip file

First of all I would like to say that i've tried looking for the solution to this and I haven't found one where I don't have to unzip, add my folder and then zi

s3 - auto compression before transfer

I want to know : If any available tool by default compress and transfer file to S3 or tool has option to compress and transfer file to S3 or I have to call py

Compression of RGB-D video from a Kinect camera

I need to send video from a Kinect camera through a network. I'm capturing video from the following two Kinect sources: 2D color video (RGB). 32 bits per pixel.

In python, if extract a tar.gz file, how to get or set the name of the result file

My question is like: when use: import tarfile tar = tarfile.open("sample.tar.gz") tar.extractall() tar.close() if the file before compress called "sampleFol

Compress image at client side (angularjs) and upload to server(nodejs)

I am using ng-file-upload directive to upload files to nodejs in my application. Now, I am trying to compress the image before uploading. To do that I have trie

How to compress web service response json in ajax call

I am using asmx web service and calling it through ajax as $.ajax({ url: 'xxxxxxx.asmx/Getxxxxxxxx', method: 'post', contentT