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
0
votes
2 answers
Lossless Image Compression - Image Recovery Fault
My prof. gave me two programs written in C: a lossless compression and a decompression one. I have to implement the Integer Wavelet Transform (I was using the lifting scheme of Haar's function but I changed to the Daubechies 5/3 int-to-int later) to…

Norle
- 1
0
votes
0 answers
iOS imageData compression
I have an app and I need to compress images to max 10mb, I'm currently using:
var imageData = UIImageJPEGRepresentation(thePhoto2.image!, 0.9)
but it would be nice to get all my images in optimal quality.

tarjerw
- 101
- 1
- 1
- 8
0
votes
2 answers
Is it possible to zip a bytearray/bitmap to a specific size?
I was trying to save images into the SQLite database, but even I compress and rescale my bitmap, the file was still too big, especially when you capture a image from the phone's camera.
Is there anyway to zip the bytearray/bitmap into a specific…

Johnny Cheuk
- 237
- 2
- 15
0
votes
0 answers
Image compression function
So, I have the following image compression function but I am not sure if it is doing what it is supposed to do.
It is in php file:
function compress_image($src, $dest , $quality)
{
$upload_dir = wp_upload_dir();
$info = getimagesize($src);
if…

Steve Kim
- 5,293
- 16
- 54
- 99
0
votes
1 answer
Bitmap.Comp() method in android. Quality = 100 gives image larger in size than original image
I am using Bitmap's compress() method to compress my images with the help of following code:
ByteArrayOutputStream baos;
Bitmap img = BitmapFactory.decodeFile(imgs[i].getAbsolutePath());
img.compress(Bitmap.CompressFormat.JPEG, compFactor,…

Rishab Jaiswal
- 349
- 3
- 19
0
votes
1 answer
Client-side image compression
I've made an image gallery, but the browser lags as it renders images. Six images are rendered at one time, but because these images are full-size jpegs taken straight from people's phones or cameras they are often large and it causes a lot of…

Jake Stanger
- 449
- 1
- 8
- 24
0
votes
2 answers
Get image quality in Java in the same way as ImageMagick's "identify" command
I am trying to get the quality of an image using Java and I am having a hard time to find any API that would do that.
I stumbled upon the ImageMagick command identify which works great but I would like to know if there is a Java API that would do…

Shriram Sharma
- 599
- 1
- 5
- 19
0
votes
1 answer
Image dequantization in Java giving ramdom points in red , green or blue on Image
I am very new to Java and Image Processing. I am trying to take DCT(Discrete cosine transform) of 8*8 blocks and then do quantization and later get the original image by dequantizing followed by IDCT.
But my final decoded image has green,red and…

user1662871
- 19
- 2
0
votes
1 answer
Compressed textures before and after
I want to make a programm with Unity that shows in split screen on the left side the .jpg or .png image and on the right side the compressed image (ETC or DXT).
I was trying to solve it like this:
void CompressImage()
{
original_image = new…

CMS
- 704
- 3
- 9
- 32
0
votes
2 answers
Are there any samples of visible color loss when using pngquant library/algorithm?
I would like to start using pngquant library in our product to improve our custom png compression. But png quant is lossy and it is going to be a hard sell. The main objection that I will get is we can't loose colors/quality.
Are there any…

vmg
- 9,920
- 13
- 61
- 90
0
votes
2 answers
How to compress images with clientside Javascript fetched from the server?
I'm retrieving images from an API server in Javascript but want to compress them (since they are rather big files that are slowing down my website's load time) to display. How can I compress these images using Javascript, or what tools are out there…

user3226932
- 2,042
- 6
- 39
- 76
0
votes
1 answer
How can I force a local copy of an image to be used instead of fetching from a third party site
I have a website which uses a couple of third party JS plugins. Google page speed insight is reporting that some of the images that are being served from these third party sites are not compressed, but I have no control over these.
Is there some way…

Matt Wilko
- 26,994
- 10
- 93
- 143
0
votes
3 answers
Is there a way to split an image/video file into parts and compress certain parts?
I am working on an app and we are uploading a small file to figure out the users connection and based off that we are compressing the video/image files so they upload quickly. Is there a way to upload part of a video or image file and compress the…

Tyler
- 2,346
- 6
- 33
- 59
0
votes
1 answer
Corrupted pdf after some compression using iTextSharp
The following code creates a .pdf first which is okay and looks perfect, I have taken the rest of the code (which makes the compression) from another post on this site. The problem is that the compressed.pdf file is 1kb and acrobat says the file is…

Vladimir Mihaylov
- 149
- 1
- 9
0
votes
0 answers
Compression of image not working
I am trying to upload picture using camera. I am uploading it to server
Clicking image and showing it in imageview ( DONE)
Compressing the image size to upload (Not Working)
Uploading image to S3 (with uncompressed image) (DONE)
This is my…

Rahul Saxena
- 69
- 1
- 10