Questions tagged [image-compression]

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.

816 questions
5
votes
4 answers

Compress image without losing the quality

I've been developing an Android app which takes picture and save it. And I want make the upload speed more faster by compressing the image. But as I compressed them using BitmapCompress, the image seems lost its quality. Here : RAW : COMPRESSED :…
jofftiquez
  • 7,548
  • 10
  • 67
  • 121
5
votes
2 answers

what compression algorithm to use for highly redundant data

This program uses sockets to transfer highly redundant 2D byte arrays (image like). While the transfer rate is comparatively high (10 Mbps), the arrays are also highly redundant (e.g. Each row may contain several consequently similar values). I…
beebee
  • 280
  • 3
  • 18
5
votes
2 answers

Changing Image resolution without resizing in Java

I want to compress a jpeg image, that is, decrease its resolution, without resizing it in any way. Is there any good Java library that will help me doing it? There are lots of similar posts in SO, but most of them end up resizing the image as…
SexyBeast
  • 7,913
  • 28
  • 108
  • 196
5
votes
1 answer

OutOfMemory Exception: Will compressing images reduce heap size?

I've been meaning to ask this for quite awhile now. I am creating this game where I draw a very large background. But the problem is (of course), when I put more elements to the game, I get an OutOfMemory Exception. What I've been meaning to ask is,…
dabaerju
  • 103
  • 1
  • 13
5
votes
4 answers

PHP Reducing all image types quality

I am looking for a library that can reduce all image types quality (PNG, GIF and JPEG). I know that I can reduce JPEG using imagejpeg() I also know that I can reduce PNG using imagepng() although this is not powerful enough. I need something that…
Ron
  • 3,975
  • 17
  • 80
  • 130
5
votes
5 answers

Tool for lossless image compression

Running Google Page Speed on a public site , I saw some suggestions by the tool like the following : Losslessly compressing http://g-ecx.images-amazon.com/images/G/01/electronics/detail-page/Acer-120x120._V137848950_.gi could save 4.8KiB (26%…
Inquisitive
  • 7,476
  • 14
  • 50
  • 61
5
votes
1 answer

Can I change the compression algorithm used by Java's ImageWriter when creating a JPEG?

Or, alternatively, is there a better library to use to handle compression? Let me preface this with what I already understand: (1) JPEG is lossy--it won't look the same as the input file. (2) I can adjust the compression quality setting to…
timehat
  • 135
  • 6
4
votes
2 answers

smallest valid base64 AVIF image

I would like to find the smallest possible, but valid (viewable) base64 encoded AVIF string for testing browser image support with javaScript. I'm using this set: const imgs = { jxl: "/wr6HwGRCAYBAFAASzhB5k11/Ia1kyog0AHeH0nCAVw=", avif:…
stenito
  • 51
  • 2
4
votes
2 answers

how to check whether the image is compressed or not after applying SVD on that image(regarding size of compressed image on disk)

I=imread('cameraman.tif'); figure(1),imshow(I) I1=im2double(I); [U,S,V]=svd(I1); figure(2),imshow(I1) for j=1:90 I2=U(:,1:j)*S(1:j,1:j)*V(:,1:j)'; end figure(3),imshow(I2) I3=U*S*V'; figure(4),imshow(I3) this is the code i have written for SVD…
Suj
  • 41
  • 2
4
votes
0 answers

How to store a set of images and labels dynamically in zarr format?

I have read zarr documentation,but could not able do this. I want something like this tree format: ---dataset --- sample1 --frames( 10 rgb frames) --labels (1/0) --- sample2 --frames( 10 rgb frames ) …
4
votes
1 answer

Change the file format using browser-image-compression library in reactjs?

In this example I am using the filetype option as .png but its not working as expected. import imageCompression from 'browser-image-compression'; const compressImage = async (pic) => { const options = { maxSizeMB: 1, maxWidthOrHeight:…
Shivam Rawat
  • 241
  • 1
  • 4
  • 8
4
votes
2 answers

Compression of an image

I have been calculating the uncompressed and compressed file sizes of an image. This for me has always resulted in the compressed image being smaller than the uncompressed image which I would expect. If an image contains a large number of different…
user12183419
4
votes
1 answer

How to calculate Image compression ratio?

How do I calculate the following : Suppose we want to compress tiny images that are 10x10 pixels and each pixel is represented by four bytes (for Red, Green, Blue and transparency). Suppose a codebook (centroids of K-Means) of size 1000 provides…
Oliver
  • 443
  • 4
  • 10
4
votes
1 answer

Automatic image compression/optimization with spring-boot application

is there a way to automatically compress/optimize images in a spring-boot-application? As in my application the user can put any images in a folder themselves, I cannot make sure, they are compressed the best way. And as they are not uploaded…
digital-h
  • 301
  • 3
  • 11
4
votes
1 answer

Gzip compression in Apache Tomcat 8 for image and font

This is configuration for gzip compression in Apache Tomcat 8
Zaw Than oo
  • 9,651
  • 13
  • 83
  • 131