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

Android : How to convert the compressed images to string with minimum size

In my android application i am using whatsapp like image compression and after that i convert the compressed image bitmap to string using Base64 encoding,what i noticed is that when i compress a 5mb image and save it in another locations its just of…
KJEjava48
  • 1,967
  • 7
  • 40
  • 69
0
votes
2 answers

when i am converting image file into base64 size of image increased 3 times, can anyone explain ??

when i am converting image file into base64 size of image increased 3 times, can anyone please explain ?? Ideally it should increase 30% to 40%. Bitmap bitmap = BitmapFactory.decodeFile(file.getAbsolutePath()); ByteArrayOutputStream stream = new…
Rakesh Meena
  • 59
  • 2
  • 8
0
votes
2 answers

ie8 gives error "object does not support this method or property" on uploading a second image

I'm trying to implement shift8creative's agile uploader. All works well in proper browsers, but ie is causing problems. the page is here:https://www.postadigi.com/pages/upload-order the line the js error is highlighting is…
Will
  • 4,498
  • 2
  • 38
  • 65
0
votes
1 answer

What do the terms "frame" and "scan" mean in JPEG

The JPEG markers contain SOFn for start of frame and SOS for start of scan. What do the two items mean and what is the connectio between them?
quantum231
  • 2,420
  • 3
  • 31
  • 53
0
votes
1 answer

How is huffman coding table built in practice?

My question is specific. I can see that the theory of huffman coding is easy to understand. However, it seems that it creates codes that usually do not align to byte boundaries. The practical method to mitigate this specific issue is not dealt in…
quantum231
  • 2,420
  • 3
  • 31
  • 53
0
votes
1 answer

JPEG2000 : Can number of resolution levels be different for different components in a single .jp2 image?

Can number of resolution levels be different for different components in a single jp2 image? For example, maxlevel = 5 for component 1 maxlevel = 7 for component 2 mexlevel = 5 for component 3 maxlevel = 5 for component 4 Correct me if any.
0
votes
1 answer

working with the image compression in android ,every thing is working fine but when i upload an image to server its corupted

I am using this code to compress image ..and ftp to upload images.i get compressed image in my device but the image in backend is corrupted.i have camera and gallery selection option to upload images. public String compressImage(String…
Shafin Raza
  • 21
  • 1
  • 8
0
votes
1 answer

compressing already compressed image in android open gl

I want to compress already compressed images and pass the final double compressed data to glCompressedTexImage2D. For this I have followed below steps: glGenTextures(1, textureID); glBindTexture(GL_TEXTURE_2D, textureID); glTexImage2D(GL_TEXTURE_2D,…
0
votes
1 answer

Base64 image compression before sending it to Cloudinary

I am making a web app that supports image upload and views for users. I was using angularjs for framework, but after I figured out sending images to backend is quite tricky in single page app framework(angular), I chose to compile the image to…
supergentle
  • 1,001
  • 1
  • 14
  • 33
0
votes
1 answer

Google Page Insight: mobile score 100 .. desktop 80 same images

been trying to fix this all day now, but I don't seem to progress anymore. I've minified all resources, moved them to the bottom, async loaded javascript, compressed images... but still the desktop score is only 83/100 and it's all because of the…
Joshua - Pendo
  • 4,331
  • 6
  • 37
  • 51
0
votes
0 answers

Compress 2d array which contains ones and zeros

I have an array which stores the information of a 20x20 black and white image. int array[][] = new int[20][20]; If the pixel is black at a specific point, for example (0,5) I insert the value one into my array. array[0][5] = 1; I am trying to…
0
votes
2 answers

BitmapFactory.decodeFile(path, options) returns options.outWidth equals 0

Below is a snippet of a code I use to compress an image: public static final List compressImage(String imagePath) { Bitmap scaledBitmap = null; BitmapFactory.Options options = new BitmapFactory.Options(); …
0
votes
1 answer

Image Compression using SVD

I've been researching on image compression with SVD for school. However, I do not see how there will be a reduction in memory by using SVD and truncating the number of singular values used. The original image would be m x n in size, thereby using m…
ashiswin
  • 637
  • 5
  • 11
0
votes
2 answers

Android bitmap compress error

I am trying to take a photo from android and post it to the server but when I run the app, I can access the camera, take a photo and get a crash after accepting the photo, but the app should convert the image to base64, and send it to the server.…
user6822385
0
votes
1 answer

Implementing JPEG or JPEG2000 on GPU

I have a project where I should implement JPEG on a GPU. Can anyone tell me where to start and how should I implement the algorithm? I have installed Python, PyOpenCL and PyOpenGL. I also have Code Blocks and Microsoft Visual Studio.
Beginner1111
  • 41
  • 1
  • 9