Android: Compressing images creates black borders on left and top margin
I'm using this compression class from the following site: http://voidcanvas.com/whatsapp-like-image-compression-in-android/ Here is my compression class with very little modifications from the original class: import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; import android.media.ExifInterface; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import timber.log.Timber; //http://voidcanvas.com/whatsapp