Saving an image with a target file size

All your problems with Audio, Video and Images.

Saving an image with a target file size

Postby PolliSoft » Fri Apr 23, 2010 9:54 am

Hi,

In my application, I want to be able to save an image to a specified file size. I.e. I want a dynamic comression rate depending on the width and height of the image.
Is this possible to do?

/Cheers
PolliSoft
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Apr 23, 2010 9:41 am

Top

Postby CodeBaboon » Wed May 05, 2010 9:05 pm

images can only be saved to Camera supported Picture Sizes.

you can get a list of them through the Camera.getParameters().getSupportedPictureSizes(). The list returned is a List<Size>. you can find out more through the Android SDK
CodeBaboon
Junior Developer
Junior Developer
 
Posts: 18
Joined: Fri Mar 26, 2010 8:27 pm

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 13 guests