Scale, Rotate, and draw on Images. Photo Editor SDK is here for you!

It’s the pictures era!

 

Why do we need Photo Editor SDK? These days, most of the social mobile apps are having Instagram-like features of sharing pictures or stories for better user experience and engagement.

You want to enable your users to scale, rotate and draw on images. And if you want to build all of these things from scratch, then a big hassle will be waiting for you for sure.

From here, it comes the idea of Photo Editor SDK. An open source library that makes it easy for the developer to make all they need from scaling, rotating, drawing, zooming in and out on images with simple integration, something like MAGIC!

Photo Editor SDK contains a lot of features like edit, scale, rotate and draw on images like Instagram stories. From now and then, you can easily integrate with this library and make the experience you want with a lot of friendly methods that make all the magic to you with no effort and less code.

So, what are the features of the Photo Editor SDK library?

  • Drawing on an image with the option to change its brush’s color, size, opacity and erasing.
  • Editing and adding text with the option to change its color with custom fonts.
  • Insert emoji with custom emoji fonts.
  • Adding images, stickers or even any custom Views.
  • Pinch to scale and rotate views.
  • Undo and redo for brush and views.
  • Undo after adding views.
  • Deleting any added views.
  • Saving photo after editing.

Excited yet?

Let’s go to the important part, how to integrate with this MAGIC:

For iOS:

To integrate iOS Photo Editor into your Xcode project using CocoaPods, specify it in your Podfile:

Then, run the following command:

How to user PhotoEditor SDK in iOS:

The PhotoEditorViewController.

The PhotoEditorDelegate methods.

For Android:

To integrate Android Photo Editor into your Android Studio project by using Gradle or Maven as bellow :

Gradle:

Step 1: Add it to your root build.gradle at the end of repositories :

Step 2: Add the dependency :

Maven:

Step 1: Add it to your root build.gradle at the end of repositories :

Step 2: Add the dependency:

How to user PhotoEditor SDK in Android:

To get an instance of Photo Editor SDK to initialize it and start calling the desired functions:

To add Text to the image:

To add Image or Stickers:

To add Emoji:

To Draw on the image:

To change the Color and Size of the drawing view and the Size and the Color of the eraser view:

To Save the image after editing:

To Undo the added View:

To Clear All the added views:

To Clear All the added Drawing Views:

To listen on added views, edit the added text views, added and removed views and start and stop moving views, you can implement:

If you interested to contribute to our library, you can check the GitHub link for Android or for iOS.

Let us know what do you think of this library and if you have ever needed it before.

Happy coding everyone 🙂