All Projects → SimformSolutionsPvtLtd → SSImagePicker

SimformSolutionsPvtLtd / SSImagePicker

Licence: Apache-2.0 license
Easy to use and configurable library to Pick an image from the Gallery or Capture an image using a Camera... 📸

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to SSImagePicker

Insgallery
📸 Instagram-like image picker for Android (一款 UI 炫酷高仿 Instagram 的图片、视频选择器)
Stars: ✭ 409 (+80.18%)
Mutual labels:  gallery, crop-image, imagepicker
pikaso
Seamless and headless HTML5 Canvas library
Stars: ✭ 23 (-89.87%)
Mutual labels:  crop, crop-image, rotate-image
horcrux
Generate you own online gallery easily. Photo is the horcrux of memory.
Stars: ✭ 34 (-85.02%)
Mutual labels:  gallery, gallery-images
ngx-image-gallery
Probably the best Angular 4+ modal and inline image gallery. Angular upgrade for ng-image-gallery.
Stars: ✭ 80 (-64.76%)
Mutual labels:  gallery, gallery-images
Zlphotobrowser
Wechat-like image picker. Support select normal photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
Stars: ✭ 3,962 (+1645.37%)
Mutual labels:  gallery, imagepicker
MediaSliderView
Pure java based, highly customizable media slider gallery supporting both images and videos for android.
Stars: ✭ 85 (-62.56%)
Mutual labels:  gallery, gallery-images
ImagePicker
Android image picker
Stars: ✭ 17 (-92.51%)
Mutual labels:  gallery, imagepicker
Ypimagepicker
📸 Instagram-like image picker & filters for iOS
Stars: ✭ 3,661 (+1512.78%)
Mutual labels:  gallery, imagepicker
Igrphototweaks
Drag, Rotate, Scale and Crop
Stars: ✭ 212 (-6.61%)
Mutual labels:  crop, crop-image
Yimagepicker
小红书多图剪裁+微信图片选择器+大图预览+图片剪裁(支持圆形剪裁和镂空剪裁),已适配androidQ,借鉴并升级matisse加载内核!超强定制性可轻松实现知乎/马蜂窝/微博等特殊样式!支持跨进程回调!内部结构轻量级,无任何第三方开源库!支持support依赖!
Stars: ✭ 975 (+329.52%)
Mutual labels:  gallery, imagepicker
Rxpaparazzo
RxJava extension for Android to take images using camera and gallery and pick files up
Stars: ✭ 467 (+105.73%)
Mutual labels:  gallery, crop
Photo view
📸 Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.
Stars: ✭ 1,280 (+463.88%)
Mutual labels:  gallery, rotate
react-fluid-gallery
Fluid media gallery for React powered by WebGL.
Stars: ✭ 75 (-66.96%)
Mutual labels:  gallery, gallery-images
envadrouille
Fast and customizable photo gallery.
Stars: ✭ 18 (-92.07%)
Mutual labels:  gallery, gallery-images
ProPicker
ProPicker is a file picker (image, video, file) library for Android. It helps you to pick any file and return the result in a convenient way
Stars: ✭ 25 (-88.99%)
Mutual labels:  gallery, imagepicker
Vue Croppie
Vue wrapper for croppie
Stars: ✭ 228 (+0.44%)
Mutual labels:  crop, crop-image
Album
android 图片视频加载库,单选,多选,预览,自定义UI,相机,裁剪...等等 已适配android10,11
Stars: ✭ 53 (-76.65%)
Mutual labels:  gallery, crop-image
Cropiwa
📐 Configurable Custom Crop widget for Android
Stars: ✭ 2,185 (+862.56%)
Mutual labels:  crop, crop-image
Pixelsdk
The modern photo and video editor for your iPhone / iPad app. A fully customizable image & video editing iOS Swift framework.
Stars: ✭ 192 (-15.42%)
Mutual labels:  crop, rotate
Croperino
📷 A simple image cropping tool that provides gallery or camera help for Native Android (Java)
Stars: ✭ 176 (-22.47%)
Mutual labels:  gallery, crop

📸 SSImagePicker

API Kotlin Version Android Weekly Android Arsenal

Easy to use and configurable library to Pick multiple images from the Gallery or Capture an image using Camera with maximum size, extension, crop, rotate, zoom and compress features.

  • You can easily select image from camera and gallery and upload it wherever you want. We have created this library to simplify pick or capture image feature.
  • Handled permissions for camera and gallery, also supports scoped storage.
  • Returns contentUri of selected image.
  • Easy to use and supports all major devices.
  • Support for new Photo Picker for Android 11+.

Features :

  • Capture Image Using Camera
  • Pick Image From Gallery
  • Multiple image pick support with pick limit
  • Handle Runtime Permission For Storage And Camera
  • ImagePicker Options Bottom Sheet
  • Retrieve Image Result In Uri Format
  • Crop Image with support of free hand cropping
  • Rotate Image
  • Image Zoom In, Zoom Out
  • Size filter for images
  • Extension filter for images
  • Compress image
  • Customize entire Image Picker screen UI with your own options and style
  • New Photo picker for the Android 11+.

🎬Preview

Camera Picker Gallery Picker Multi Selection Gallery Picker
Picker Option Bottom Sheet Crop Options Extension Options
System Photo Picker (Android 11+)

📚 How it works:

  1. Gradle Dependency
  • Add the JitPack repository to your project's build.gradle file

    • For Gradle version 5.x.x or less
         allprojects {
             repositories {
                 ...
     	        maven { url 'https://jitpack.io' }
             }
         }
    • For Gradle version 6.x.x and above, in settings.gradle file inside pluginManagement block
         pluginManagement {
             repositories {
                 ...
                 maven { url 'https://jitpack.io' }
             }
         }
  • Enable data binding feature in your app's build.gradle file (More Details).

        android {
            ...
            buildFeatures {
                dataBinding true
            }
        }
  • Add the dependency in your app's build.gradle file

        dependencies {
            implementation 'com.github.SimformSolutionsPvtLtd:SSImagePicker:2.0'
        }
  1. Add ImagePickerActivity into your AndroidManifest.xml. SSImagePicker is default theme for image picker activity. If you want to set custom theme check out customization guide. Make sure to add the android:configChanges to handle the rotation.
<activity
    android:name="com.app.imagepickerlibrary.ui.activity.ImagePickerActivity"
    android:configChanges="orientation|screenSize"
    android:theme="@style/SSImagePicker" />
  1. If you want to use Picker options bottom sheet then implement SSPickerOptionsBottomSheet.ImagePickerClickListener in your fragment or activity. onImageProvider method will give the selected provider type.
    val pickerOptionBottomSheet = SSPickerOptionsBottomSheet.newInstance()
    pickerOptionBottomSheet.show(supportFragmentManager,"tag")
    ....
    override fun onImageProvider(provider: ImageProvider) {
        when (provider) {
            ImageProvider.GALLERY -> {
                //Open gallery
            }
            ImageProvider.CAMERA -> {
                //Open camera
            }
            ImageProvider.NONE -> {}
        }
    }
  1. Open Image Picker from activity or fragment via registering the image picker. It will give object of ImagePicker class.
    private val imagePicker: ImagePicker by lazy {
        registerImagePicker(this)
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        ...
    }
    
    //To display the picker screen call open method on image picker object passing the picker type.
    imagePicker.open(PickerType.GALLERY)
  1. Add customization to image picker via the image picker object. Checkout all the methods and default values for customization from the picker config customization section.
    imagePicker
            .title("My Picker")
            .multipleSelection(enable = true, maxCount = 5)
            .showCountInToolBar(false)
            .showFolder(true)
            .cameraIcon(true)
            .doneIcon(true)
            .allowCropping(true)
            .compressImage(false)
            .maxImageSize(2)
            .extension(PickExtension.JPEG)
    imagePicker.open(PickerType.GALLERY)
  1. To get result in activity or fragment implement ImagePickerResultListener.
    class MainActivity : AppCompatActivity(), ImagePickerResultListener {
        ...
    }
  1. Single Selection and the image captured from camera will be received in onImagePick(uri: Uri?) callback.
    override fun onImagePick(uri: Uri?) {
        //Do something with uri
    }
  1. Multiple Selection uris will be received in onMultiImagePick(uris: List<Uri>?) callback.
    override fun onMultiImagePick(uris: List<Uri>?) {
        //Do something with uris
    }

🎨 Customization

📝 Permissions

SSImagePicker Uses following permissions to display images. For system Photo Picker on Android 11+ no permission is required.

  • API 21(Android 5) to API 32(Android 12L): android.permission.READ_EXTERNAL_STORAGE
  • API 33(Android 13) onwards: android.permission.READ_MEDIA_IMAGES

🚀 Migration

  • Checkout the migration guide for migration to the latest version.

Other Library used:

Find this library useful? ❤️

Support it by joining stargazers for this repository.

🤝 How to Contribute

Whether you're helping us fix bugs, improve the docs, or a feature request, we'd love to have you! 💪

Check out our Contributing Guide for ideas on contributing.

Bugs and Feedback

For bugs, feature requests, and discussion please use GitHub Issues.

Awesome Mobile Libraries

License

MIT License

Copyright (c) 2022 Simform Solutions

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].