The objective of image compression is to reduce irrelevance and redundancy of the image data in order to be able to store or transmit data in an efficient form. Image compression may be lossy or lossless.
Questions tagged [image-compression]
816 questions
-1
votes
1 answer
Chroma subsampling in jpeg compression
Is the chroma sub-sampling the first step to compress an image file to jpeg image file? Is this the step that we implement in Color Space Conversion?

anurag
- 79
- 1
- 7
-1
votes
3 answers
Plugin to retaining image quality in website after resize or compress (PHP)
I'm developing a website using codeigniter that deals with images of high quality.
I have to compress and resize image with minimum quality loss and also i need to minimize its disk space. Is there any plugin which will help me out.
Please share…

Vinu Dev
- 1
- 2
-1
votes
2 answers
Can a PNG be optimized in a browser via JavaScript?
I have been using tools like OptiPng for a long time and am wondering if there is any equivalent, that runs in JavaScript only inside the browser.
Just curious if a framework/plugin exists to optimize images in JavaScript?

frequent
- 27,643
- 59
- 181
- 333
-1
votes
1 answer
How to move compressed image file PHP
Here is the function that compress image file.
function compress_image($source_url, $destination_url, $quality) {
$info = getimagesize($source_url);
if ($info['mime'] == 'image/jpeg'){
$image = imagecreatefromjpeg($source_url);
}elseif…

user3663143
- 63
- 2
- 9
-1
votes
1 answer
Compress image using Huffman coding in Java
So, I have been breaking my head over huffman coding compression for "IMAGES".
I know the working of huffman and am able to implement on text, however, I do not understand how do I proceed further with images.
I have a grayscale image, which I…

Polynomial Proton
- 5,020
- 20
- 37
-2
votes
1 answer
how to cv2.imencode and imdecode (jpeg) for diffret QF values?
I need to use open cv functions: cv2.imencode,cv2.imdecode to compress (jpeg) and decompress (jpeg) for different QF values.
The picture is 'bridge.ppm' from https://imagecompression.info/test_images/
I've tried:
bridge =…

Adar Cohen
- 158
- 1
- 13
-2
votes
2 answers
How do spatial compressors reduce file sizes for graphics?
How exactly do spatial compressors reduce file sizes for graphics? Does it have to do with pixels, frames, or metadata?

TeeBee
- 1
- 2
-2
votes
2 answers
Can I compress a 1MB image file (PNG, JPG, TIFF, etc) into a ~1KB thumbnail?
As per our project requirements we need to save artworks (images with JPG, PNG, TIFF etc image formats) which can size anywhere from 1KB to 1MB. We are now storing them in AWS S3 bucket.
I have below few questions on our implementation:
Is it a…

yogesh sadula
- 7
- 3
-2
votes
1 answer
Unable to reduce image file size in php while uploading
I following code can upload multiple image and rename them while upload and it works fine.Then i tried to implement image compress but this doesn't work, can someone help me to solve this issue.
Without compress method
if (!empty($_POST)) {
…

sanoj lawrence
- 951
- 5
- 29
- 69
-2
votes
1 answer
JPEG encoder and decoder and send via socket C#
I have some picture send via sockets to the client.
these pictures must be compressed before sending to the client .
what can i do for compressing to jpeg and send via socket (convert jpeg to byte[] send to the client and vice versa).
thanks for…

4rm4n
- 1
- 2
-2
votes
2 answers
android compress image size before sending to server
I have tried multiple solutions from the internet with no luck, How do I go about changing the image size when I upload on app?
I want it to be in a way that when I upload a 2MB file,it gets sent to the server with size = 50kb.
Please help…

Fuluza
- 109
- 2
- 13
-2
votes
1 answer
JavaScript: How to show compressed image
Let's say I have an image URL (for example: http://theartmad.com/wp-content/uploads/2015/04/Smile-3.jpg) and I need to show it on my web page, but I do not need it's original big size, let say I need only 100px width image. Set max-width: 100px in…

Pumych
- 1,368
- 3
- 18
- 31
-2
votes
1 answer
DELPHI : What is the best way to compress max and to keep quility of BITMAP
I have a function that I made for compressing bitmap to JPEG.
procedure BmptoJpeg(Bmp : TBitmap; JpgStream: TStream);
var
Jpg: TJPEGImage;
begin
Jpg := TJPEGImage.Create;
try
Jpg.Assign(Bmp);
Jpg.CompressionQuality := 10;
…

david chan
- 31
- 5
-2
votes
2 answers
batch image compression on ubuntu (lossy)
Its strange but I cannot find a good image compression tool (ala IrfanView on windows) on ubuntu to recompress images in order to save disk space (yes! I care about it :)).
I am looking for web standard image details.
Earlier, I had used digikam…

everCurious
- 195
- 3
- 15
-3
votes
2 answers
Compressing Images in C#
How can I compress images of different sizes (2-5-10-20 MB) of type .jpg to almost 1-1.5 MB in C#? I have been trying to compress using the 'quality' factor in the MagickImage library, but the quality factor is not proportional to the percentage. I…

Aakash Rana
- 23
- 2