mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 08:18:00 +01:00
adding 16:10 crop ratio, used mostly on tablets
This commit is contained in:
parent
8035d90e36
commit
daf87be965
2 changed files with 4 additions and 1 deletions
|
@ -69,7 +69,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.21.22'
|
implementation 'com.simplemobiletools:commons:5.21.23'
|
||||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
||||||
implementation 'androidx.multidex:multidex:2.0.1'
|
implementation 'androidx.multidex:multidex:2.0.1'
|
||||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||||
|
|
|
@ -201,6 +201,8 @@ class NewEditActivity : SimpleActivity() {
|
||||||
add(CropAspectAsset("my_crop_4_5", 4, 5, false))
|
add(CropAspectAsset("my_crop_4_5", 4, 5, false))
|
||||||
add(CropAspectAsset("my_crop_37_18", 37, 18, false))
|
add(CropAspectAsset("my_crop_37_18", 37, 18, false))
|
||||||
add(CropAspectAsset("my_crop_18_37", 18, 37, false))
|
add(CropAspectAsset("my_crop_18_37", 18, 37, false))
|
||||||
|
add(CropAspectAsset("my_crop_16_10", 16, 10, false))
|
||||||
|
add(CropAspectAsset("my_crop_10_16", 10, 16, false))
|
||||||
}
|
}
|
||||||
|
|
||||||
settingsList.getSettingsModel(UiConfigAspect::class.java).aspectList.apply {
|
settingsList.getSettingsModel(UiConfigAspect::class.java).aspectList.apply {
|
||||||
|
@ -208,6 +210,7 @@ class NewEditActivity : SimpleActivity() {
|
||||||
add(ToggleAspectItem(CropAspectItem("my_crop_19_9"), CropAspectItem("my_crop_9_19")))
|
add(ToggleAspectItem(CropAspectItem("my_crop_19_9"), CropAspectItem("my_crop_9_19")))
|
||||||
add(ToggleAspectItem(CropAspectItem("my_crop_5_4"), CropAspectItem("my_crop_4_5")))
|
add(ToggleAspectItem(CropAspectItem("my_crop_5_4"), CropAspectItem("my_crop_4_5")))
|
||||||
add(ToggleAspectItem(CropAspectItem("my_crop_37_18"), CropAspectItem("my_crop_18_37")))
|
add(ToggleAspectItem(CropAspectItem("my_crop_37_18"), CropAspectItem("my_crop_18_37")))
|
||||||
|
add(ToggleAspectItem(CropAspectItem("my_crop_16_10"), CropAspectItem("my_crop_10_16")))
|
||||||
}
|
}
|
||||||
|
|
||||||
settingsList.getSettingsModel(UiConfigFilter::class.java).setFilterList(
|
settingsList.getSettingsModel(UiConfigFilter::class.java).setFilterList(
|
||||||
|
|
Loading…
Reference in a new issue