All Projects → iamutkarshtiwari → Ananas

iamutkarshtiwari / Ananas

Licence: MIT License
An easy image editor integration for your Android apps.

Programming Languages

java
68154 projects - #9 most used programming language
c
50402 projects - #5 most used programming language
Makefile
30231 projects
kotlin
9241 projects

Projects that are alternatives of or similar to Ananas

Photoeditor
A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.
Stars: ✭ 3,105 (+1569.35%)
Mutual labels:  stories, paint, instagram, facebook, canvas, filters
Imaging
Imaging is a simple image processing package for Go
Stars: ✭ 4,023 (+2062.9%)
Mutual labels:  crop, rotate, brightness
instagram-stories
Get the Instagram Stories in Node.js and Browser
Stars: ✭ 86 (-53.76%)
Mutual labels:  stories, instagram, facebook
spark-ar-creators
List of 9500 (and counting) Spark AR Creators. Open an issue or contact me if you want to be added.❤️
Stars: ✭ 122 (-34.41%)
Mutual labels:  instagram, facebook, filters
Tui.image Editor
🍞🎨 Full-featured photo image editor using canvas. It is really easy, and it comes with great filters.
Stars: ✭ 4,761 (+2459.68%)
Mutual labels:  paint, canvas, photo
Instagrid Js
A Javascript library to do exactly what Instagram Layout application does
Stars: ✭ 13 (-93.01%)
Mutual labels:  instagram, canvas, crop
Pixelsdk
The modern photo and video editor for your iPhone / iPad app. A fully customizable image & video editing iOS Swift framework.
Stars: ✭ 192 (+3.23%)
Mutual labels:  crop, rotate, filters
Photofilters
photofilters library for flutter
Stars: ✭ 229 (+23.12%)
Mutual labels:  instagram, filters, photo
downscale
Better image downscale with canvas.
Stars: ✭ 80 (-56.99%)
Mutual labels:  canvas, crop, photo
Zuck.js
A javascript library that lets you add stories EVERYWHERE.
Stars: ✭ 3,396 (+1725.81%)
Mutual labels:  stories, instagram, facebook
vesdk-android-demo
VideoEditor SDK: A fully customizable video editor for your app.
Stars: ✭ 90 (-51.61%)
Mutual labels:  text, crop, filters
Social-Media-Automation
Automate social media because you don't have to be active on all of them😉. Best way to be active on all social media without actually being active on them. 😃
Stars: ✭ 186 (+0%)
Mutual labels:  instagram, facebook
Whizzz-The-ChatApp
Whizzz is a real-time, one-to-one Android chat application made using Firebase, a beautiful user interface, and a push-notification feature.
Stars: ✭ 66 (-64.52%)
Mutual labels:  instagram, facebook
FaceFilter
Snapchat and Instagram like Face Filter.
Stars: ✭ 72 (-61.29%)
Mutual labels:  instagram, filters
Skeleton
Skeleton is a Social Engineering tool attack switcher
Stars: ✭ 44 (-76.34%)
Mutual labels:  instagram, facebook
MyIGBot
MyIGBot is a Private API for Instagram to like, follow, comment, view & intaract with stories, upload post & stories, get all information about a user/posts and get posts based on locations/hashtags. It also supports proxy.
Stars: ✭ 137 (-26.34%)
Mutual labels:  stories, instagram
hashtag.io
Hashtag.io is a PHP based social networking website, which supports exclusive multimedia content, sharing and private or group messaging service.
Stars: ✭ 64 (-65.59%)
Mutual labels:  instagram, facebook
instagram-text-editor
An Instagram like text editor Flutter widget that helps you to change your text style.
Stars: ✭ 66 (-64.52%)
Mutual labels:  instagram, text
VKRdownloader
Vkrdownloader: All in one Video Downloader - Download videos from facebook twitter youtube tiktok and 1000+ other sites . YouTube downloader , facebook downloader . made by Vijay Kumar
Stars: ✭ 25 (-86.56%)
Mutual labels:  instagram, facebook
Lassi-Android
All in 1 picker library for android.
Stars: ✭ 108 (-41.94%)
Mutual labels:  crop, photo

Ananas Photo Editor

Download API

An easy photo editor integration for your Android apps.

Features

Benefits

  • Plug and play
  • Easy image editing

Previews

Main Menu Text Mode
Rotate Mode Crop Mode
Filter Mode Paint Mode
Beauty Mode Saturation Mode
Brightness Mode Sticker Mode

Getting Started

Add it in your root build.gradle at the end of repositories:

  allprojects {
    repositories {
      ...
      maven { url 'https://jitpack.io' }
    }
  }

Add the dependency in gradle file of app module like this

implementation 'com.github.iamutkarshtiwari:Ananas:1.2.6'

[Important!]

Add this to your app's proguard-rules.pro file:

-keepclasseswithmembers class * {
    native <methods>;
}

And this to your app's build.gradle:

compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
}

NOTE:

Since this library uses RxJava 2.0 and if your project uses RxJava 1.0, then you need to add the below code to the gradle file of you app so that both versions can co-exist-

android {
    packagingOptions {
        exclude 'META-INF/rxjava.properties'
    }
}

Starting the PhotoEditor activity

Add this constant to your activity class with your preferred request code:

private final int PHOTO_EDITOR_REQUEST_CODE = 231;// Any integer value as a request code.

Use the following code to build and launch the photo editor:

 try {
  Intent intent = new ImageEditorIntentBuilder(this, sourceImagePath, outputFilePath)
         .withAddText() // Add the features you need
         .withPaintFeature()
         .withFilterFeature()
         .withRotateFeature()
         .withCropFeature()
         .withBrightnessFeature()
         .withSaturationFeature()
         .withBeautyFeature()
         .withStickerFeature()
         .forcePortrait(true)  // Add this to force portrait mode (It's set to false by default)
         .setSupportActionBarVisibility(false) // To hide app's default action bar
         .build();

 EditImageActivity.start(activity, intent, PHOTO_EDITOR_REQUEST_CODE);
 } catch (Exception e) {
     Log.e("Demo App", e.getMessage()); // This could throw if either `sourcePath` or `outputPath` is blank or Null
 }

Receiving the output image

You can receive the new processed image path and it's edit status like this-

 @Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);

        if (requestCode == PHOTO_EDITOR_REQUEST_CODE) { // same code you used while starting
            String newFilePath = data.getStringExtra(ImageEditorIntentBuilder.OUTPUT_PATH);
            boolean isImageEdit = data.getBooleanExtra(EditImageActivity.IS_IMAGE_EDITED, false);
        }
    }

Special Note

The photo editor locks the current orientation in which it is started -

  1. If you started in Portrait mode, you can't switch to Landscape while the image editor activity is running.
  2. If you started in Landscape mode, you can't switch to Portrait during the same.

But once you navigate back to your original app, you are reverted back to your previous configuration change settings.

How to contribute?

  • Fork the project.
  • Make required changes and commit.
  • Generate pull request. Mention all the required description regarding changes you made.

Happy coding! :)

What's next?

  • Add support for configuration change during photo editing

Questions?🤔

Hit me on twitter Twitter Facebook

How to submit a valid issue

  • Make sure you compiled the latest version. If it still doesn't work out, don't hesitate to open a new issue.
  • Describe the scenarios when crash happened as much as possible (pictures would be better).
  • Sharing your device type and Android OS version is very helpful.
  • Paste your XML or Java code.
  • Paste the crash log.
  • Be polite.

Credits

Name Library
siwangqishiq ImageEditor Android
ArthurHub Android Image Cropper
hoanganhtuan95ptit Contrast and Brightness feature
eltos Color Picker Dialog
Russell Jurney Kelly's 22 colors list
burhanrashid52 PhotoEditor
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].