Skip to content

Image Editor for Android with Crop, Filter, Rotate, Saturation, Brightness, Contrast

License

Notifications You must be signed in to change notification settings

AlirezaGhanbarinia/EditPhoto

Repository files navigation

EditPhoto

android library EditPhoto. Image Editor for Android

Demo

[]

Project

Icon Name Link Google Play
CamDoc - Document Scanner, PDF Scanner App 2018

️Features

  • Crop with
((EditPhotoActivity) getActivity()).addFragmentToStack(CropFragment.create(inputUrl, this));
  • Filter with
((EditPhotoActivity) getActivity()).addFragmentToStack(FilterFragment.create(inputUrl, this));
  • Rotate with
((EditPhotoActivity) getActivity()).addFragmentToStack(RotateFragment.create(inputUrl, this));
  • Saturation with
((EditPhotoActivity) getActivity()).addFragmentToStack(SaturationFragment.create(inputUrl, this));
  • Brightness with
((EditPhotoActivity) getActivity()).addFragmentToStack(BrightnessFragment.create(inputUrl, this));
  • Contrast with
((EditPhotoActivity) getActivity()).addFragmentToStack(ContrastFragment.create(inputUrl, this));

Download

  • Step 1. Add it in your root build.gradle at the end of repositories:
    allprojects {
        repositories {
          ...
          maven { url 'https://jitpack.io' }
        }
    }
  • Step 2. Add the dependency
    dependencies {
        compile 'com.github.hoanganhtuan95ptit:EditPhoto:1.0.1'
    }

Using

  • Java
        switch (type) {
            case Crop:
                ((EditPhotoActivity) getActivity()).addFragmentToStack(CropFragment.create(inputUrl, this));
                break;
            case Filter:
                ((EditPhotoActivity) getActivity()).addFragmentToStack(FilterFragment.create(inputUrl, this));
                break;
            case Rotate:
                ((EditPhotoActivity) getActivity()).addFragmentToStack(RotateFragment.create(inputUrl, this));
                break;
            case Saturation:
                ((EditPhotoActivity) getActivity()).addFragmentToStack(SaturationFragment.create(inputUrl, this));
                break;
            case Brightness:
                ((EditPhotoActivity) getActivity()).addFragmentToStack(BrightnessFragment.create(inputUrl, this));
                break;
            case Contrast:
                ((EditPhotoActivity) getActivity()).addFragmentToStack(ContrastFragment.create(inputUrl, this));
                break;
        }

Thank

Name Library
Yalantis UCrop

About

Image Editor for Android with Crop, Filter, Rotate, Saturation, Brightness, Contrast

Resources

License

Stars

Watchers

Forks

Packages

No packages published