• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to compress an image in android

 
Suzzane Pinto
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i want to compress an image and insert into database.
which compression technique should i use without loosing quality of my image....
 
Pondurai Singh
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
compress an image and save the image

For your reference
http://developer.android.com/reference/android/graphics/Bitmap.html#createScaledBitmap%28android.graphics.Bitmap,%20int,%20int,%20boolean%29
 
Tim Moores
Bartender
Posts: 2856
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lossless compression generally results in at most a 50% reduction in size - hardly worthwhile given the cost of hard disk storage these days.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic