Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import android.graphics.BitmapRegionDecoder;
import android.graphics.Rect;
import android.support.media.ExifInterface;
import android.util.Log;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
Expand Down Expand Up @@ -57,6 +58,7 @@ public byte[] getJpeg() {
bitmapOperator.flipBitmapHorizontal();
}


if (cropAspectRatio != null) {
int cropWidth = width;
int cropHeight = height;
Expand Down
4 changes: 4 additions & 0 deletions demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}

debug {
debuggable true
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected void onCreate(Bundle savedInstanceState) {
setupDrawerAndToolbar();

camera.setMethod(cameraMethod);
camera.setCropOutput(cropOutput);
//camera.setCropOutput(cropOutput);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion demo/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
android:id="@+id/camera"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:ckCropOutput="false"
app:ckCropOutput="true"
app:ckFacing="back"
app:ckFlash="off"
app:ckFocus="tapWithMarker"
Expand Down