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
4
votes
2 answers

Using gdal compressed GeoTIFF with GeoServer

I have a big GeoTIFF that I want to stream through a WMS within GeoServer (v.2.11). The size of the image is about 7GB, consisting on a very large high resolution RGB image. I have allowed enough heap space within JVM in order to display the…
pahu87
  • 41
  • 6
4
votes
7 answers

Process to compress an image for uploading to a server in Android

I want to write my own code for compressing an image before I upload it to server. I have seen many posts on SO like this and there are many other posts also but everywhere there are only code samples. It is not actually explained anywhere. I am not…
Ayushi bhardwaj
  • 441
  • 5
  • 18
4
votes
4 answers

is there any way to reduce PNG size?

as bm.compress(Bitmap.CompressFormat.PNG, 50, out); //here 50 will not work as PNG is lossless how to reduce .png image size? also just coping to external location from drawable make file size increase by 5 to 10 times? Bitmap…
Electro
  • 395
  • 4
  • 16
4
votes
2 answers

Compressing Images in c# asp.net Core

Does anyone know how to compress images of any type (jpg, png, gif, etc.) in c# asp.net core. WebP doesn't work on core. I downloaded the ImageProcessor Core library, but can't figure out how to compress/reduce the quality of the image. Here's what…
Jean AR
  • 41
  • 1
  • 1
  • 5
4
votes
0 answers

Grunt Image Compression

I've been playing around with Grunt and thought it would be nice to compress images with Grunt (as I am already minifying and compressing other files as well). I have got it to work with: grunt-contrib-imagemin & [grunt-image] They work pretty…
4
votes
0 answers

android bitmap to byte array without compression

How can we convert bitmap image to byte array in Android without compressing the image? Image to byte array in Android: Bitmap photo = (Bitmap) data.getExtras().get("data"); img_view.setImageBitmap(photo); Bitmap resizedImage =…
4
votes
2 answers

Using mod_pagespeed with native node.js server

I've been looking for a solution to optimize images for better performance. After trying some solutions (like sharp and imagemin, which resulted in never smaller, sometimes bigger files), I am now looking to experiment with Google's pagespeed.…
Noy
  • 1,258
  • 2
  • 11
  • 28
4
votes
0 answers

Lossless YCbCr Tiff?

My goal is to create a Tiff image that natively holds uncompressed (or with lossless compression) YCbCr data inside (since the original image is YUV420 and IMO it would be a poor choice to upsample and convert to RGB). I’m able to create (using…
Mark
  • 1,540
  • 2
  • 13
  • 21
4
votes
5 answers

EMGU CV videowriter is unable to make video

I was trying to capture video using Emgu CV VideoWriter but it shows: Unable to create VideoWriter. Make sure you have the specific codec installed How do I deal with this? This is what my code looks like: Bitmap back = new Bitmap("jpg image…
Akshay Bhasin
  • 581
  • 2
  • 6
  • 13
4
votes
0 answers

Bitmap Compression Issues in android

public static void addBitmapToDisk(String filename, Bitmap paramBitmap, Context paramContext) { writeBitmapToDisk(filename, paramBitmap, paramContext, Bitmap.CompressFormat.PNG); } public static void…
Swapnil
  • 654
  • 7
  • 27
4
votes
1 answer

Similar library to TinyPNG for Java - compress image size

I'm working on a website that allows users to upload images and crop them. I convert every image to .PNG for better quality. The problem I'm having is the picture size. If I upload a 200 kb image, after cropping and making it PNG it has 600 kb.…
4
votes
1 answer

Lossless H.264 compression of a 16-bit grayscale image

I have a 16-bit monochrome image that I need to encode it using lossless H.264. Ideally, I would love to be able to use a 16-bit Y component, and then empty U and V components, but I believe such an implementation does not exist. On the other…
mhernandez
  • 607
  • 5
  • 14
4
votes
3 answers

Crop an image with special frame

I am writing an application for android. I need to implement something like below image(From LG's wallpaper selection tool). The original image does not have a circle. The actual image is cropped to outside rectangle, but thumbnail images are…
Jee Seok Yoon
  • 4,716
  • 9
  • 32
  • 47
4
votes
1 answer

How to convert .tiff/.bmp to JPEG-XR with Imagemagick's convert tool?

i'm using the convert tool from imagemagick to convert images to the jpeg-xr format. i'm using the latest version under debian linux (ImageMagick-6.8.6-8). The problem is convert -format jxr or convert -format wdp produce the same format as my…
znarf
  • 814
  • 2
  • 15
  • 31
4
votes
1 answer

How can I remove metadata from an image (JPG) without losing quality?

I already found this nearly similar question on Stackoverflow: How can I remove metadata from a JPEG image in Java? But when I use the Method described above, the saved image is being compressed. Is there any way to remove the metadata without…
heinkunibert
  • 361
  • 2
  • 5
  • 15