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
0
votes
1 answer

How to reduce the size of an image file without zipping it?

Hi i am writing a code in java to compress an image file without zipping it but all that i have been able to do is to zip the file. This is my code. package com.test.main; import java.io.File; import java.io.FileInputStream; import…
user1844638
  • 1,067
  • 3
  • 23
  • 48
0
votes
2 answers

How to do an image compression

i am creating an android app where in i am getting all the images from the gallery to display in a grid view in my activity. I am also displaying checkboxes along with the images so the user can select multiple images and upload it to the server. to…
shivani
  • 746
  • 3
  • 22
  • 40
0
votes
1 answer

Compression BMP to TGA issue

I'm new in .net development, so, may be my question is simple. I need to compress BMP to TGA and decompress TGA to BMP using C#. How can I implement that?
Paul T.
  • 4,938
  • 7
  • 45
  • 93
0
votes
1 answer

How to include jpeg2000 compression standard in code?

I am new to JAVA. I am working on Image compressions. How can I compress .jpg images with jpeg2000 in JAVA. Does java has any library?
0
votes
0 answers

How to get the libraries of DivX codec and put them into the C/C++ project

I'm writing a C programming to create a AVI file from the jpeg frame which is get from camera. I've chosen a compression function recommended on the internet to compress these frames. the compressor which I want to chose that is DivX…
vominhtien961476
  • 317
  • 4
  • 17
0
votes
2 answers

PHP GD compressing png but not compressing Jpeg

The following works very well for png files, but for jpeg/jpg the compression doesn't work. function compressImage($source, $destination, $quality) { $info = getimagesize($source); if ($info['mime'] == 'image/jpeg') $image =…
Joshua
  • 79
  • 1
  • 8
0
votes
0 answers

Jpg Compression and viewing/writing to file

So, I am sending gray jpg images over a network. I compress them in memory using jpge: https://code.google.com/p/jpeg-compressor/, and then pass them over the network. When I go to display them using opencv or write them to file, I get the same…
Jomnipotent17
  • 451
  • 7
  • 23
0
votes
0 answers

Compression Ratio calculation

I am doing image compression but I am finding hard time caclulating the compression ratio of the decoded image. I thought it was calculated as CR = Size of decoded image/ size of original image but am being told it is wrong. Can someone please…
Muk
  • 11
  • 3
  • 7
0
votes
1 answer

Saving quantized coefficients to file

I am trying to read an image, DCT transform it, quantize it, and then save the quantized coefficients to a file that will be read into a fractal encoding program. When I decode the file (with the quantized coefficients), all I get is some grey…
Muk
  • 11
  • 3
  • 7
0
votes
1 answer

Computer-readable visual code, downscaling-friendly: multi-band QR?

I am looking for a way to encode an image data into another image of a comparable size, machine-readable. Purpose of this is the task of image encryption for social media: encoded image can be resampled, down-scaled, and should still be valid for…
Serge
  • 1,531
  • 2
  • 21
  • 44
0
votes
2 answers

Convert a layout to an image, how to have a good quality?

I have a layout in an Android activity, I convert it as an image and then share it on different social networks. The things is that the quality is not good at all, I have artifacts on the image, and the quality depend of the size of the screen. Is…
Dimillian
  • 3,616
  • 4
  • 33
  • 53
0
votes
1 answer

What license to choose for my lossy image compression algorithm?

I'm trying to implement lossy image compression algorithm with good ratio and (I hope) less artifacts that jpeg has. I plan to release encoder/decoder tool first. I've heard that there's some issues with jpeg2000 usage related to licensing and…
J X
  • 55
  • 5
0
votes
3 answers

How do I compress an image with Run-Length Encoding using C#?

How do I compress an image with Run-Length Encoding using C#? Are there any available libraries to support this? Does Run-Length Encoding only work on bitmapped images? If so, How will I convert image types to bitmap using C#? I'd also like to ask…
user919789
  • 171
  • 4
  • 7
  • 19
0
votes
2 answers

Re-process all Images in WordPress

I've got a blog that has the highest-resolution version of all its images embedded in the posts, rather than a thumbnail linking off to an image attachment page. Can you tell me how I can re-process all embedded images so they're output as reduced…
Alec Rust
  • 10,532
  • 12
  • 48
  • 63
0
votes
2 answers

Bulk optimization of images

My client uploaded about 500 images to the server, none of which are optimized. Most are only 800x600 or so yet are weighing in as 700 KB - 1.5 MB files. Obviously there is a lot of room for optimization here. I tried doing something locally…