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

Fourier Transform based Image compression before text-detection

DCT of 1x8 data [8,16,24,32,40,48,56,64] --(dct8)--> [100,-52,0,-5,0,-2,0,0.4]. Now if we truncate (i.e. discard low-frequency components) and then take Inverse DCT of that 1x4 data over 1x8 interval as : [100,-52,0,-5] --(idct8)-->…
0
votes
1 answer

When I'm compressing the image size getting from gallary, the height and width are also compressed

My problem is when I am compressing the image size (Mb to Kb) that I'm getting from the gallery, the height and width of the image are also compressing. Can anyone tell me how I can resolve this problem? I want to get the image in full size (full…
0
votes
2 answers

Huffman Decompression without keys

Is it possible by any technique to decompress a Huffman image without having keys generated by the Huffman tree?
0
votes
1 answer

Generating a P frame based on an I frame

Say I have 5 images that are quite similar. I'd like to compress images 2, 3, 4 and 5 based on the first image, somewhat similar to the way P frames are generated from an I frame. In general, what's the best way/tool to do so? For instance, using…
0
votes
1 answer

Compress and decompress file before saving to disk

In my application i have one web service which getting one file from FormData(client side) and i want to compress that file before saving to disk(without using extra folder). i read a lot of answers from here but i got confused, which method i will…
user3501613
  • 596
  • 7
  • 28
0
votes
2 answers

Which is the better location to compress images? In the browser or on the server?

I have a Django project and i allow users to upload images. I don't want to limit image upload size for users. But want to compress the image after they select and store them. I want to understand which is better: Compress using java-script on the…
Amarendra Reddy
  • 243
  • 2
  • 17
0
votes
1 answer

How DCT-coeffitients change after shifting the image in the spatial domain?

Suppose we have an image I of dimentions (8*n)x(8*n), and let m=n-1. Consider a cropped image J of dimentions (8*m)x(8*m) obtained from I by reducing t rows form above, 8-t rows from below, k columns from left, and 8-k columns form right. If t…
Glinka
  • 483
  • 1
  • 3
  • 18
0
votes
0 answers

Optimize images for the mobile website

I was trying to figure out the issues with the existing page using PageSpeed Insights. So, I came across the following results which says optimize your images but i am already using the JPG format with 90% quality settings. Moreover, same url…
Naresh
  • 5,073
  • 12
  • 67
  • 124
0
votes
0 answers

android Fatal Exception: AsyncTask #5

I'm having a problem with my asynctask code. here is my code. it said that it couldn't read row 0. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); …
kathleen55
  • 341
  • 2
  • 9
  • 29
0
votes
1 answer

image writing in the matlab coding for image compression

I want to compress 500 images which is in a folder D:\Dr.Ayush Singhal\Ph.D coding and database\compression*.jpg and save the compressed image in other folder having path D:\Dr.Ayush Singhal\Ph.D coding and…
0
votes
0 answers

Identify image offset between two similar image C#

I have two images. One is a original image (source image), and the other is a scanned copy of original image. I need to compare the two images find offset (X, Y) is created by the scanned copy. In different scenarios I am getting different offset…
Vipul
  • 1,563
  • 4
  • 22
  • 46
0
votes
1 answer

Discrete Wavelet Transform in Java creates white Spots in the Image

in my Java program, a image is loaded into the programm, then transformed using the discrete wavelet Transform and the resulting coefficients are used as picture data for the output image. The process works fine with natural images:…
0
votes
1 answer

How to show the image with reduced size in thumnails using Cordova

In my android application, I have to show the images in thumbnail view with reduced size(100 KB) instead of showing it with original size(1 MB). It helps to improve the performance of my application. How to implement this compression functionality…
BALA MURUGAN
  • 1,825
  • 3
  • 16
  • 17
0
votes
2 answers

Android Gallery Thumbnail Images

I am developing an application which loads images from local device storage. I used compression technique code: FileOutputStream fo = new FileOutputStream(file); picture.compress(Bitmap.CompressFormat.JPEG, 90, fo); fo.flush(); fo.close(); where…
0
votes
1 answer

gm convert: Unrecognized units type

I try to compress PNG by GraphicsMagick(1.3.23 Q8), here is the command: gm convert -units Undefined -type palette -define png:format=png8 src.png dest.png and it comes with error: gm convert: Unrecognized units type (Undefined). "gm convert…