Questions tagged [lossless]

Lossless data compression is a class of data compression algorithms that allows the original data to be perfectly reconstructed from the compressed data.

Lossless data compression is a class of data compression algorithms that allows the original data to be perfectly reconstructed from the compressed data.

82 questions
4
votes
1 answer

Android: lossless WEBP compression

I am compressing an image in the WEBP-format with the following code: bitmap.compress(Bitmap.CompressFormat.WEBP, 100, outputStream) Although I am using highest quality-settings, it looks like the image is not compressed lossless but…
Alex
  • 569
  • 5
  • 21
3
votes
2 answers

Is it possible to losslessly crop/scale a webp similar to jpegtran

Jpegtran allows fast lossless cropping and scaling of jpegs with certain constraints. Is there a similar tool to do the same for webp files? I couldn't find one. Is it even possible?
smremde
  • 1,800
  • 1
  • 13
  • 25
3
votes
1 answer

Is cropping of jpeg images using the PIL lossless?

A simple questions really. If you crop a jpeg image using the Python Imaging Library, is the resulting image recompressed, or is it lossless?
Acorn
  • 49,061
  • 27
  • 133
  • 172
3
votes
1 answer

MATLAB tif file format vrs PNG file format. True lossless compression?

I have been working on a problem where I need to save a matrix as an Image and for it to be a truly lossless example of the matrix in MATLAB. I have tried writing the image as a png and tiff both in lossless form: Name Size …
Gavin
  • 31
  • 4
3
votes
1 answer

How to set frame encoding method as CABAC in ffmpeg

I'm trying to encode video frames into H264 format using ffmpeg in C. While configuring the encoder properties I don't see how to set the frame encoding method as CABAC (lossless). Any idea? Thanks in advance.
Erfan
  • 1,284
  • 1
  • 13
  • 21
2
votes
2 answers

What C# library provides lossless video compression?

I was wondering what a good library would be for doing c# lossless video compression? I have a lot of hard drive space so that's not an issue. Only lossless will do, no alternatives.thanks I was also thinking something like http://zlib.net/…
Kelly Elton
  • 4,373
  • 10
  • 53
  • 97
2
votes
0 answers

How to losslessly crop a JPEG image in nodejs?

Take two. In my nodejs application I need to extract a rectangular part of a JPEG image. I have the coordinates (x, y, width, height), I just need to crop. There are many libraries that can do this (sharp, jimp, lwip, etc) but they all follow the…
Vilx-
  • 104,512
  • 87
  • 279
  • 422
2
votes
1 answer

FFMPEG's FLAC Compression Levels & Defaults Settings

I have searched for the documentation on this but found no information. I'm using the latest FFMPEG nightly build in Windows 10 Insider Build (also latest) 64 Bit. I need to know how to define the compression level of FLAC files. Also, by default…
Techie Android
  • 69
  • 1
  • 2
  • 6
2
votes
1 answer

h264 lossless settings in c

I am currently trying to apply lossless H264 settings for FFMPEG in c. However, I am unsure as to what the settings need to be to ensure lossless encoding and I have found little documentation in this area. My current settings are: …
Squid
  • 45
  • 1
  • 4
2
votes
2 answers

Lossless PDF rotation

is there a way to rotate a PDF 90 degrees losslessly, with Python or using the command line? I'm looking for a REAL rotation, not just adding a "/ROTATE 90" inside the PDF, because afterwards I have to send the PDF via Hylafax and it looks like that…
Joril
  • 19,961
  • 13
  • 71
  • 88
1
vote
1 answer

Are there any good DEFLATE-like compression algorithms that are additive and immutable?

I need to add more things onto a stacklike structure, but compress them additively such that addition of new data results in the expected compression gain, but new chunks are still stored as compressed data without altering any of the past data…
Andy
  • 67
  • 1
  • 7
1
vote
0 answers

How to check if an AVIF still image has been lossless encoded

I have an avif still image file that I know has been lossless encoded. I'm trying to find a command line tool (or other way) that allow me to check that the file has been lossless encoded (instead of lossy). I have tried with heif-info (from…
jfcalvo
  • 459
  • 1
  • 5
  • 16
1
vote
1 answer

ITU T.87 JPEG LS Standard and sample .jls SOS encoded streams have no escape sequence 0xFF 0x00

ITU T.81 states the following: B.1.1.2 Markers Markers serve to identify the various structural parts of the compressed data formats. Most markers start marker segments containing a related group of parameters; some markers stand alone. All markers…
SoLaR
  • 778
  • 7
  • 22
1
vote
0 answers

How can I overlay an angled gradient or fade over the corner of a video with ffmpeg?

I want to darken the corner of a video with a (for instance) 45-degree black gradient. I'd like to customize the angle, feathering, color and opacity. My video is 10-bit UHD HEVC and I need to output to 10-bit lossless intermediate (probably v210…
grgoelyk
  • 397
  • 1
  • 3
  • 12
1
vote
1 answer

How to change playback speed in LosslessCut?

Might sound like a strange question, but hear me out. I have hours of video I want to cut up and edit together, but a lot of it is just junk I don't need. I don't want to lose any quality, so I use LosslessCut. The problem for me is that it's... A…
Synn Ko
  • 137
  • 1
  • 15