[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7293":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":38,"readmeContent":39,"aiSummary":40,"trendingCount":16,"starSnapshotCount":16,"syncStatus":41,"lastSyncTime":42,"discoverSource":43},7293,"PhotoEditor","burhanrashid52\u002FPhotoEditor","burhanrashid52","A Photo Editor library with simple, easy support for image editing using paints,text,filters,emoji and Sticker like stories.","",null,"Kotlin",4475,1046,103,58,0,6,13,1,31.06,"MIT License",false,"master",true,[26,27,28,29,30,31,32,33,34,35,36,37],"android","canvas","emoji","facebook","filters","image-processing","instagram","paint","photo-editor","stickers","stories","text-editor","2026-06-12 02:01:37","# PhotoEditor\n\n![Github Action](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Factions\u002Fworkflows\u002Fapp_build_and_test.yml\u002Fbadge.svg)\n[![Downloads](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDownload-3.1.0-blue.svg)](https:\u002F\u002Fsearch.maven.org\u002Fartifact\u002Fcom.burhanrashid52\u002Fphotoeditor\u002F3.1.0\u002Faar) ![API](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAPI-21%2B-brightgreen.svg) [![JavaDoc](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FJavaDoc-PhotoEditor-blue.svg)](https:\u002F\u002Fburhanrashid52.github.io\u002FPhotoEditor\u002F) [![Uplabs](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FUplabs-PhotoEditor-orange.svg)](https:\u002F\u002Fwww.uplabs.com\u002Fposts\u002Fphotoeditor)\n[![AndroidArsenal](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAndroid%20Arsenal-PhotoEditor-blue.svg)](https:\u002F\u002Fandroid-arsenal.com\u002Fdetails\u002F1\u002F6736)\n[![AndroidDevDigest](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAndroidDev%20Digest-%23185-brightgreen.svg)](https:\u002F\u002Fwww.androiddevdigest.com\u002Fdigest-185)\n[![AwesomeAndroid](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAwesome%20Android-%2397-red.svg)](https:\u002F\u002Fandroid.libhunt.com\u002Fnewsletter\u002F97)\n[![AndroidWeekly](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAndroid%20Weekly-%23312-blue.svg)](http:\u002F\u002Fandroidweekly.net\u002Fissues\u002Fissue-312)\n[![Mindorks](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FMindorks%20Newsletter-%234-ff69b4.svg)](https:\u002F\u002Fmindorks.com\u002Fnewsletter\u002Fedition\u002F4)\n\n\nA Photo Editor library with simple, easy support for image editing using Paints, Text, Filters, Emoji and Sticker like stories.\n\n[Download link](https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F1pw_iZ_PIyOSJzCWR_uLnoe7PKCDTgosp?usp=sharing)\n\n![](https:\u002F\u002Fi.imgur.com\u002FZYtLHTZ.png)\n\n\u003Ca href=\"https:\u002F\u002Fwww.producthunt.com\u002Fposts\u002Fphotoeditor-2?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-photoeditor-2\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Fapi.producthunt.com\u002Fwidgets\u002Fembed-image\u002Fv1\u002Ffeatured.svg?post_id=297508&theme=light\" alt=\"PhotoEditor - Android SDK with simple, easy support for image editing. | Product Hunt\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" \u002F>\u003C\u002Fa>\n\n\u003Ca href=\"https:\u002F\u002Fwww.buymeacoffee.com\u002Fburhanrashid52\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Fwww.buymeacoffee.com\u002Fassets\u002Fimg\u002Fcustom_images\u002Forange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" >\u003C\u002Fa>\n\n## Features\n\n- [**Drawing**](#drawing) on image with option to change its Brush's Color, Size, Opacity, Erasing and basic shapes.\n- Apply [**Filter Effect**](#filter-effect) on image using MediaEffect\n- Adding\u002FEditing [**Text**](#text) with option to change its Color with Custom Fonts.\n- Adding [**Emoji**](#emoji) with Custom Emoji Fonts.\n- Adding [**Images\u002FStickers**](#adding-imagesstickers)\n- Pinch to Scale and Rotate views.\n- [**Undo and Redo**](#undo-and-redo) for Brush and Views.\n- [**Deleting**](#deleting) Views\n- [**Saving**](#saving) Photo after editing.\n- More [**FAQ**](#faq).\n- [Lesson Learned from building successful android library PhotoEditor: Droidcon Berlin 2021](#lesson-learned-from-building-successful-android-library-photoeditor-droidcon-berlin-2021)\n\n\n\n## Benefits\n- Hassle free coding\n- Increase efficiency\n- Easy image editing\n\n## Getting Started\nTo start with this, we need to simply add the dependencies from `mavenCentral()` in the gradle file of our app module like this\n```groovy\nimplementation 'com.burhanrashid52:photoeditor:3.1.0'\n```\nor we can also import the :photoeditor module from sample for further customization\n\n## Migrations\n### AndroidX\nPhotoEditor [v.1.0.0](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Freleases\u002Ftag\u002Fv.1.0.0) is a migration to androidX and dropping the support of older support library. There are no API changes. If you find any issue migrating to v.1.0.0 , please follow this [Guide](https:\u002F\u002Fdeveloper.android.com\u002Fjetpack\u002Fandroidx\u002Fmigrate). If you still facing the issue than you can always rollback to [v.0.4.0](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Freleases\u002Ftag\u002Fv.0.4.0). Any fix in PR are Welcome :)\n\n### Kotlin\nPhotoEditor [v.2.0.0](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Freleases\u002Ftag\u002Fv.2.0.0) is fully migrated to Kotlin. You can use [v.1.5.1](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Freleases\u002Ftag\u002Fv.1.5.1) for the Java version. There are no breaking API changes in these two versions.\n\n## Setting up the View\nFirst we need to add `PhotoEditorView` in our xml layout\n\n```xml\n \u003Cja.burhanrashid52.photoeditor.PhotoEditorView\n        android:id=\"@+id\u002FphotoEditorView\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        app:photo_src=\"@drawable\u002Fgot_s\" \u002F>\n  \n```\nWe can define our drawable or color resource directly using `app:photo_src`\n\nWe can set the image programmatically by getting source from `PhotoEditorView` which will return a `ImageView` so that we can load image from resources,file or (Picasso\u002FGlide)\n```kotlin\nmPhotoEditorView = findViewById(R.id.photoEditorView)\n\nmPhotoEditorView.source.setImageResource(R.drawable.paris_tower)\n```\n\n## Building a PhotoEditor\nTo use the image editing feature we need to build a PhotoEditor which requires a Context and PhotoEditorView which we have to setup in our xml layout\n\n\n```Kotlin\n\u002F\u002FUse custom font using latest support library\nval mTextRobotoTf = ResourcesCompat.getFont(this, R.font.roboto_medium)\n\u002F\u002Floading font from asset\nval mEmojiTypeFace = Typeface.createFromAsset(getAssets(), \"emojione-android.ttf\")\n\nmPhotoEditor = PhotoEditor.Builder(this, mPhotoEditorView)\n            .setPinchTextScalable(pinchTextScalable) \u002F\u002F set flag to make text scalable when pinch\n            .setDefaultTextTypeface(mTextRobotoTf)\n            .setDefaultEmojiTypeface(mEmojiTypeFace)\n            .build() \u002F\u002F build photo editor sdk\n ```\nWe can customize the properties in the PhotoEditor as per our requirement\n\n| Property  | Usage |\n| ------------- | ------------- |\n| `setPinchTextScalable()`  | set false to disable pinch to zoom on text insertion. Default: true. |\n| `setClipSourceImage()` | set true to clip the drawing brush to the source image. Default: false. |\n| `setDefaultTextTypeface()`  | set default text font to be added on image  |\n| `setDefaultEmojiTypeface()`  | set default font specifc to add emojis |\n\nThat's it we are done with setting up our library\n\n\n\n## Drawing\nWe can customize our brush and paint with different set of property. To start drawing on image we need to enable the drawing mode\n\n![](https:\u002F\u002Fi.imgur.com\u002FINi5LIy.gif)\n\n| Type                                         | Method                                                                 |\n|----------------------------------------------|------------------------------------------------------------------------|\n| Enable\u002FDisable                               | `mPhotoEditor.setBrushDrawingMode(true);`                              |\n| Shape (brush, line, oval, rectangle, arrow)  | `mPhotoEditor.addShape(shape)`                                         |\n| Shape size (px)                              | `mPhotoEditor.setBrushSize(brushSize)` or through the a ShapeBuilder   |\n| Shape opacity (In %)                         | `mPhotoEditor.setOpacity(opacity)` or through the a ShapeBuilder       |\n| Shape color                                  | `mPhotoEditor.setBrushColor(colorCode)` or through the a ShapeBuilder  |\n| Brush Eraser                                 | `mPhotoEditor.brushEraser()`                                           |\n\n**Note**: Whenever we set any property of a brush for drawing it will automatically enable the drawing mode\n\n## Shapes\nWe can draw shapes from [v.1.5.0](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Freleases\u002Ftag\u002Fv.1.5.0). We use `ShapeBuilder` to define shape and other properties.\n\n![](https:\u002F\u002Fim2.ezgif.com\u002Ftmp\u002Fezgif-2-5d5f7ddbe72e.gif)\n\n```kotlin\nval shapeBuilder = ShapeBuilder()\n    .withShapeOpacity(100)\n    .withShapeType(ShapeType.Oval)\n    .withShapeSize(50f)\n\nphotoEditor.setShape(mShapeBuilder)\n```\nFor more details check [ShapeBuilder](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Fblob\u002Fmaster\u002Fphotoeditor\u002Fsrc\u002Fmain\u002Fjava\u002Fja\u002Fburhanrashid52\u002Fphotoeditor\u002Fshape\u002FShapeBuilder.kt).\n\n## Filter Effect\nWe can apply inbuild filter to the source images using \n\n `mPhotoEditor.setFilterEffect(PhotoFilter.BRIGHTNESS)`\n\n![](https:\u002F\u002Fi.imgur.com\u002FxXTGcVC.gif)\n\nWe can also apply custom effect using `Custom.Builder`\n\nFor more details check [Custom Filters](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Fwiki\u002FFilter-Effect)\n\n\n\n## Text\n\n![](https:\u002F\u002Fi.imgur.com\u002F491BmE8.gif)\n\nWe can add the text with inputText and colorCode like this\n\n`mPhotoEditor.addText(inputText, colorCode);` \n\nIt will take default fonts provided in the builder. If we want different fonts for different text we can set typeface with each text like this\n\n`mPhotoEditor.addText(mTypeface,inputText, colorCode);`\n\nIn order to edit the text we need the view, which we will receive in our PhotoEditor callback. This callback will trigger when we **Long Press** the added text\n\n ```java\n mPhotoEditor.setOnPhotoEditorListener(new OnPhotoEditorListener() {\n            @Override\n            public void onEditTextChangeListener(View rootView, String text, int colorCode) {\n                \n            }\n        });\n  ```\nNow we can edit the text with a view like this\n\n`mPhotoEditor.editText(rootView, inputText, colorCode);`\n\nIf you want more customization on text. Please refer the wiki page for more details.\n\n\n## Emoji\n\n![](https:\u002F\u002Fi.imgur.com\u002FRP8kqz6.gif)\n\nWe can add the Emoji by `PhotoEditor.getEmojis(getActivity());` which will return a list of emojis unicode.\n\n`mPhotoEditor.addEmoji(emojiUnicode);`\n\nIt will take default fonts provided in the builder. If we want different Emoji fonts for different emoji we can set typeface with each Emoji like this\n\n`mPhotoEditor.addEmoji(mEmojiTypeface,emojiUnicode);`\n\n\n\n\n## Adding Images\u002FStickers\n We need to provide a Bitmap to add our Images  `mPhotoEditor.addImage(bitmap);`\n \n \n \n\n## Undo and Redo\n\n![](https:\u002F\u002Fi.imgur.com\u002F1Y9WcCB.gif)\n\n ```java\n   mPhotoEditor.undo();\n   mPhotoEditor.redo();\n ```\n \n\n\n## Deleting\n  For deleting a Text\u002FEmoji\u002FImage we can click on the view to toggle the view highlighter box which will have a close icon. So, by clicking on the icon we can delete the view.\n\n## Saving\n\nIn [v.3.0.0](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Freleases\u002Ftag\u002Fv.3.0.0) onward, we can save an image to a file using coroutines:\n\n```kotlin\n\u002F\u002F Please note that if you call this from a fragment, you should call\n\u002F\u002F 'viewLifecycleOwner.lifecycleScope.launch' instead.\nlifecycleScope.launch {\n    val result = photoEditor.saveAsFile(filePath)\n    if (result is SaveFileResult.Success) {\n        showSnackbar(\"Image saved!\")\n    } else {\n        showSnackbar(\"Couldn't save image\")\n    }\n}\n```\n\nYou can also save an image to a file from Java. We need to provide a file with callback method when edited image is saved.\n\n   ```java\n    mPhotoEditor.saveAsFile(filePath, new PhotoEditor.OnSaveListener() {\n                    @Override\n                    public void onSuccess(@NonNull String imagePath) {\n                       Log.e(\"PhotoEditor\",\"Image Saved Successfully\");\n                    }\n\n                    @Override\n                    public void onFailure(@NonNull Exception exception) {\n                        Log.e(\"PhotoEditor\",\"Failed to save Image\");\n                    }\n                });\n```\n\nFor more details see [Saving](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Fwiki\u002FSaving)\n\n## How to contribute?\n* Check out contribution guidelines 👉[CONTRIBUTING.md](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Fblob\u002Fmaster\u002FCONTRIBUTING.md)\n\n\n## Questions?🤔\nHit me on twitter [![Twitter](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTwitter-%40burhanrashid52-blue.svg)](https:\u002F\u002Ftwitter.com\u002Fburhanrashid52)\n[![Medium](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FMedium-%40burhanrashid52-brightgreen.svg)](https:\u002F\u002Fmedium.com\u002F@burhanrashid52)\n[![Facebook](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FFacebook-Burhanuddin%20Rashid-blue.svg)](https:\u002F\u002Fwww.facebook.com\u002FBursid)\n\n## FAQ\n\u003Cdetails>\u003Csummary>Can I use this library in my app for free?\u003C\u002Fsummary>\n\u003Cp>\n\nYes. It's an open-source library and free to use. If this library has saved your time then showing a little credit will increase my motivation towards making the library better :)\n\n\u003C\u002Fp>\n\u003C\u002Fdetails>\n\n\u003Cdetails>\u003Csummary>Does it support the CROP feature?\u003C\u002Fsummary>\n\u003Cp>\n\nCurrently, No. I started to build in branch [PE-79](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Fissues\u002F79). But due to time constraint, I drop the idea. Any PR related to CROP is welcomed :)\n\n\u003C\u002Fp>\n\u003C\u002Fdetails>\n\n\u003Cdetails>\u003Csummary>Facing issues in applying Filter?\u003C\u002Fsummary>\n\u003Cp>\n\nThe filter effect is applied using `GlSurfaceView` and the implementation of this feature causing a lot of issues. Need to think of some other alternative solution. Here is the issue [list](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Fissues?q=is%3Aissue+is%3Aopen+filter).\n\n\u003C\u002Fp>\n\u003C\u002Fdetails>\n\n\u003Cdetails>\u003Csummary>Does is support in other platforms (iOS, Web, Flutter)?\u003C\u002Fsummary>\n\u003Cp>\n\nNo. Currently, the focus is on making the android library better. We don't have any plans for [other Platform](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Fissues\u002F24).\n\n\u003C\u002Fp>\n\u003C\u002Fdetails>\n\n\u003Cdetails>\u003Csummary>Other Know Issues\u003C\u002Fsummary>\n\u003Cp>\n\n[Image Scaling](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Fissues\u002F10).\n\u003Cbr>[Memory Issue in Filter](https:\u002F\u002Fgithub.com\u002Fburhanrashid52\u002FPhotoEditor\u002Fissues\u002F48).\n\n\u003C\u002Fp>\n\u003C\u002Fdetails>\n\n### Who is using PhotoEditor?\n1. [Pixxo](https:\u002F\u002Fplay.google.com\u002Fstore\u002Fapps\u002Fdetails?id=com.pixxo.breezil.pixxo)\n2. [Couple Blog: Long distance](https:\u002F\u002Fplay.google.com\u002Fstore\u002Fapps\u002Fdetails?id=com.coupleblog)\n3. [Screenshot Tile (NoRoot)](https:\u002F\u002Ff-droid.org\u002Fpackages\u002Fcom.github.cvzi.screenshottile\u002F)\n\n**Note**: I will be happy to add your app to the list. Please reach out to me with details. You know how to reach me :)\n\n\n## Credits\nThis project is inspired from [PhotoEditorSDK](https:\u002F\u002Fgithub.com\u002Feventtus\u002Fphoto-editor-android)\n\n## Buy a cup of coffee\nIf you found this project helpful or you learned something from the source code and want to thank me, consider buying me a cup of ☕️\n[BuyMeACoffee](https:\u002F\u002Fwww.buymeacoffee.com\u002Fburhanrashid52)\n\n\u003Ca href=\"https:\u002F\u002Fwww.producthunt.com\u002Fposts\u002Fphotoeditor-2?utm_source=badge-review&utm_medium=badge&utm_souce=badge-photoeditor-2#discussion-body\" target=\"_blank\">\u003Cimg src=\"https:\u002F\u002Fapi.producthunt.com\u002Fwidgets\u002Fembed-image\u002Fv1\u002Freview.svg?post_id=297508&theme=light\" alt=\"PhotoEditor - Android SDK with simple, easy support for image editing. | Product Hunt\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" \u002F>\u003C\u002Fa>\n\n## Lesson Learned from building successful android library PhotoEditor: Droidcon Berlin 2021\n\n[![Lesson Learned from building successful android library PhotoEditor](https:\u002F\u002Fburhanrashid52.com\u002Fwp-content\u002Fuploads\u002F2021\u002F11\u002F246719409_10220774611897971_6342954485444508610_n-940x510.jpg)](https:\u002F\u002Fplayer.vimeo.com\u002Fvideo\u002F643904719 \"Lesson Learned from building successful android library PhotoEditor\")\n\n### [Open source Support](https:\u002F\u002Fjb.gg\u002FOpenSourceSupport) by [JetBrains](https:\u002F\u002Fwww.jetbrains.com)\n\n\n## MIT License\n\nCopyright (c) 2022 Burhanuddin Rashid\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and\u002For sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n \n","PhotoEditor 是一个适用于Android平台的图像编辑库，它提供了使用画笔、文字、滤镜、表情符号和贴纸等进行图片编辑的功能。其核心功能包括绘图（支持调整画笔颜色、大小、透明度及基本形状绘制）、应用滤镜效果、添加\u002F编辑文本（支持自定义字体颜色）、插入表情符号（支持自定义表情字体）、以及添加图片或贴纸等，并且还具备撤销与重做、删除视图及保存编辑后照片的能力。此外，该库还允许用户通过捏合手势缩放和旋转视图。PhotoEditor适合需要在移动应用中集成基础到中级水平图像编辑功能的场景，如社交媒体分享、个人照片美化或是任何需要增强用户体验的应用程序开发。",2,"2026-06-11 03:11:37","top_language"]