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
6
votes
6 answers

How to Compress the captured image file size before sending to server using retrofit

I am Using Retrofit retrofit:2.1.0' to upload file image to server If I take image using front camera image get uploaded successfully but if take back side camera its not uploaded i think because of large file size image not uploaded is there any…
sangavi
  • 441
  • 1
  • 3
  • 13
6
votes
1 answer

Client-Side v/s Server-Side image compression

I am working on something where users can upload pictures(size of image is not limited). Now I have two options either compressing the image using PHP(Server side) or compressing the image on client's machine using JavaScript and then uploading it…
Yomesh
  • 288
  • 1
  • 4
  • 19
6
votes
1 answer

Compression of RGB-D video from a Kinect camera

I need to send video from a Kinect camera through a network. I'm capturing video from the following two Kinect sources: 2D color video (RGB). 32 bits per pixel. 640x480 at 30fps. Depth data (D). 16 bits per pixel representing distance to the…
6
votes
2 answers

Compression of PNG using JAI (Java Advanced Imaging)

I am using javax.imageio API and JAI for compressing different types of images. It works fine for JPEG using JPEGImageWriter and GIF using GIFImageWriter. But it is not supporting for PNG compression using PNGImageWriter which throws an exception…
Gnaniyar Zubair
  • 8,114
  • 23
  • 61
  • 72
5
votes
1 answer

Colored Pixels Appearing When Trying to Compress Image (pics included)

I'm trying to compress a given image using Singular Value Decomposition. I thought I had it, until I noticed that I keep getting garbage colored pixels appearing throughout the process. The number shown at the top right shows the number of…
Justian Meyer
  • 3,623
  • 9
  • 35
  • 53
5
votes
1 answer

PermissionError: [Errno 13] Permission denied: 'C:\\Users\\...\\AppData\\Local\\Temp\\tmp24xoaa7g'

I am having a weird problem with tests regarding testing with temporary images and compressing images in models.py. There seems to be a problem with permissions: ERROR: test_has_light_images…
5
votes
1 answer

iOS Swift Image Quantization to reduce the number of colors in PNG Image

I want to reduce the number of colors in image i.e., 24-bit PNG files to smaller 8-bit indexed color images. I want to create WhatsApp stickers on the iOS device by picking from gallery, as it allowed 512 X 512 pixels size and less then 100k file…
dev
  • 87
  • 1
  • 5
5
votes
1 answer

Lossy compression of numpy array (image, uint8) in memory

I am trying to load a data set of 1.000.000 images into memory. As standard numpy arrays (uint8) all images combined fill around 100 GB of RAM, but I need to get this down to < 50 GB while still being able to quickly read the images back into numpy…
user45893
  • 733
  • 5
  • 18
5
votes
3 answers

Image compression in image upload in angular4

save(event: any, type, image_type) { this.uploadImageFlag = true; const fileList: FileList = event.target.files; if (fileList.length > 0) { const file: File = fileList[0] this.files.set('files', file, file.name) …
Pragya Sharma
  • 71
  • 1
  • 1
  • 8
5
votes
0 answers

How to compress GIF image programmatically in Android?

I want to compress large sized GIF image file(s) before sending them to the server for my chatting application (WhatsApp like feature). Thanks in advance.
Zia
  • 1,204
  • 1
  • 11
  • 25
5
votes
2 answers

Comparing two images using ImageMagick and C#

I want to compare two images and then generate and save an image that will show all the differences that has been found, for example: I am using ImageMagick: https://magick.codeplex.com/ But they don't have full documentation for C#. I found only:…
Yuval Levy
  • 2,397
  • 10
  • 44
  • 73
5
votes
3 answers

Optimize images - Losslessly compress images in Java

Having an ecommerce website, We have thousands of product images. On checking pagespeed on google it shows me something like this: I was wondering, if there is any built in feature in Java or any third party library is available with which we can…
Abhinav
  • 3,322
  • 9
  • 47
  • 63
5
votes
6 answers

On-the-fly lossless image compression

I have an embedded application where an image scanner sends out a stream of 16-bit pixels that are later assembled to a grayscale image. As I need to both save this data locally and forward it to a network interface, I'd like to compress the data…
geschema
  • 2,464
  • 4
  • 30
  • 41
5
votes
1 answer

Integrate yahoo smush.it in maven build for image compression

I want to integrate Yahoo smush.it in maven build to automate the image compression in build itself. Can anyone help me to do so? I'm open to other libraries as well. [Back-end is Java.]
SHANK
  • 2,978
  • 23
  • 31
5
votes
2 answers

Compressing text heavy PDFs without ghostscript and only ImageMagik causes blurry text

I am trying to compress PDF versions of my school newspaper using code and created the following script which works perfectly below. gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -sOutputFile=$file $old; I…
Billy Jacobson
  • 1,608
  • 2
  • 13
  • 21