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
8
votes
3 answers

Library for run-time PNG compression on iOS

I need to be able to compress PNG files at run-time but can't find any libraries that are iOS ready that can do that. JPEG does is not a great fit for me because I need to the Alpha channel that PNG provides, and JPEG does not. Turning PNG crush…
Rob Reuss
  • 1,400
  • 10
  • 20
8
votes
4 answers

Compress Image in android

I am making an application which takes image from the camera and then email it. Friends since you know that images from camera may be of too much resolution and in size as well e.g. 2.0MB and more so what i want is to re-size the image in size as…
Shah
  • 4,990
  • 10
  • 48
  • 70
8
votes
3 answers

My .jpg file is larger than .png?

I used Microsoft Paint to create a 15248 x 6552 solid color picture. I saved it as both .png and .jpg and was expecting the .jpg to be smaller than .png, but it was not. The .jpg file is 1.49MB, while the .png is 391KB. Shouldnt jpeg being a lossy…
Sylviaa20
  • 115
  • 2
  • 8
8
votes
2 answers

How to detect lossless JPEG 2000 compression?

I have a motion-JPEG 2000 file that I need to determine if the creator used lossless compression to create it based on the file itself. I do not have the raw video data to compare to, and I do not have the source code of the application used to…
7
votes
1 answer

Flutter : Convert jpg to webp

I want to convert .jpg or .png files to .webp. Unfortunately image package only support webp reading and not writing. One solution would be to add the linux binary file to flutter (cwebp), but how to execute it smoothly ? I checked and found that…
Antonin GAVREL
  • 9,682
  • 8
  • 54
  • 81
7
votes
6 answers

Is laravel image intervention a good way to compress user uploaded images?

I was checking out this laravel library to compress user uploaded images.http://image.intervention.io/ I was wondering if this is a good idea for user uploaded images (for profilepictures)? What if the user uploads a picture with a size of 1400x600…
Jim Peeters
  • 2,573
  • 9
  • 31
  • 53
7
votes
1 answer

How does Python PIL and PILLOW compress pictures?

I wanted to write a program with Python 3.3 in which a frame is added to a picture. I use the PIL package from Python to do that. But the pictures I get are less than a third as big as the original and they loose quite some focus/sharpness/gloss.…
Natulux
  • 187
  • 1
  • 1
  • 11
7
votes
4 answers

How to rotate a JPEG file on Android without losing quality and gaining file size?

Background I need to rotate images taken by the camera so that they will always have a normal orientation. for this, I use the next code (used this post to get the image orientation) //<= get the angle of the image , and decode the image from the…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
7
votes
1 answer

TIFF plot generation and compression: R vs. GIMP vs. IrfanView vs. Photoshop file sizes

I generated some high resolution publication quality plots for example library(plot3D) Volcano<-volcano zf=10 #zoom factor tiff("Volcano.tif", width=1800*zf, height=900*zf, res=175*zf, compression="lzw") image2D(z = Volcano, clab = "height,…
ECII
  • 10,297
  • 18
  • 80
  • 121
7
votes
2 answers

OpenCV - Possible Options for Image Compression

thanks for taking the time to read my post. I'm working on a little project that is going well but as an optimisation exercise I would like to reduce the size of some of the JPEG's i'm outputting. At the moment, I have a .jpg that is 600 x 400 that…
Kay Warner
  • 191
  • 1
  • 2
  • 11
6
votes
2 answers

Most smallest lossless image format and/or library?

I was having image size problem with my iOS app, and I discovered this article while finding some image size optimization solution After reading it, I realized I don't need to use only PNG or JPEG. Actually, I can use any image format which is not…
eonil
  • 83,476
  • 81
  • 317
  • 516
6
votes
4 answers

Image compression in react-native

I am trying to compress images with mozjpeg when I implemented it in node.js according to the docs it worked fine. const input = fs.readFileSync("in.ppm"); const out = mozjpeg.encode(input, { quality: 85 }); I need to do the compression on the…
Badri
  • 106
  • 1
  • 10
6
votes
3 answers

Compress JPG make the image turn green

When I try to compress the a jpg image, most of the time it work perfectly, however some jpg image turn green after the compression. Here is my code public void compressImage(String filename, String fileExtension) { BufferedImage img = null; …
Thang Pham
  • 38,125
  • 75
  • 201
  • 285
6
votes
7 answers

PNG optimization - can a PNG be further optimized

I created a design for my website in Photoshop and exported all images as 24-bit PNG images. Later, running a PageSpeed test on the website showed that the images can be further reduced upto 50% in size with lossless compression. How can this be?…
Salman A
  • 262,204
  • 82
  • 430
  • 521
6
votes
2 answers

Compress Video files in NodeJS

I am improving the performance of my application. I want to compress images and videos to minimum size without any quality loss i.e. lossless compression. For images, i've used imagemin package. It works well with png format, but for jpeg, its very…
1 2
3
54 55