Code Monkey home page Code Monkey logo

photoeditor's Introduction

GIF

Hey, I'm Burhanuddin Rashid! 👋 burhanrashid52

A Google Developer Expert in Flutter and Mobile Engineer from Pune, India. I love building applications & discussing new product ideas.

Ask me anything about...

Reach out to me at...

Burhanuddin's Twitter Burhanuddin's Linkdein Burhanuddin's Instagram Burhanuddin's Facebook


Languages

                                   

Tools and Frameworks

                  react                             



  • 🔭 I’m currently working on Flutter
  • 🌱 I’m currently learning Dart and Javascript
  • 👯 I’m looking to collaborate on Mobile Project
  • 🤔 I’m looking for help with my open source projects
  • 💬 Apart from tech you can Ask me about Movies, TV Shows and Books
  • 📫 How to reach me at [email protected]
  • ⚡ Fun fact: I can mentally be present in a meeting for 45-60 minutes.


🐦 Latest Tweet



photoeditor's People

Contributors

anderbytes avatar ankitivo avatar burhanrashid52 avatar chrsngular avatar cvzi avatar datl4g avatar ftahery avatar gabrielnakhata avatar hooyee-dji avatar jspiner avatar kevinminions avatar licaon-kter avatar longdt57 avatar lucianocheng avatar maciej-klupp avatar perezfer avatar rtz333 avatar s4cha avatar sagarkondhare avatar samanfekri avatar shadjac avatar stephanepechard avatar tanodxyz avatar tiendung717 avatar unbiaseduser avatar vardantitan avatar wasky avatar yumin2019 avatar zerezhka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

photoeditor's Issues

Brush color changes after saving image...

Hello there...
I found one bug when using brush....
Suppose i draw something on view in one color and again i draw something using brush in other color (overlapping first one), when we save image brush color automatically changes.
Please refer following screenshots.
Before saving....
img_20180612_114927
After saving image(red color automatically changes to navy blue)
img_20180612_114901
Please check this bug.....

After drawing something, the previous actions are not reversible any more

For example, if I add text, then stickers, emojis, then I can select text again and modify it. Also "undo" works fine.
But if I draw something, then I cannot select any more the text box. Also "undo" does not work any more.
I suppose that prior to drawing, all actions are actually applied to the image. A solution could be to keep all drawing in a separate layer. I also think that in order to simplify things, erase could be applied only to drawing layer .

Memory issue

screenshot 24

if i change filter multiples time without "largerHeap="true" application crashes and as u can see in screenshot that it take upto 1.2Gb no phone, it some kind of memory leak or something.

Transparent image background

How can i have transparent background for image? right now i load the image and save it, but there is some black color around my image. i want it to be only my image and nothing more around it.

Sticker

I want to apply some effects on sticker
How to Apply effects on Sticker after view is added how to find which view is currently selected or clicked

App crashes on Jelly Bean 4.2.2

Hello there,
App crashes when i open ImageEditorActivity
Here is logcat error.... its related to font
Caused by: java.lang.RuntimeException: native typeface cannot be made
at android.graphics.Typeface.(Typeface.java:175)
at android.graphics.Typeface.createFromAsset(Typeface.java:149)
at com.enthuons.photoeditor.EditGalleryImageActivity.onCreate(EditGalleryImageActivity.java:144)

Can you please look into the issue.... On other versions i am not facing this issue but on JB 4.2.2 app get crashed

Save full resolution

Hi,
Can i save image with original size? As an example, the camera takes pictures at a resolution of 3264x2448. After editing the image, it is saved is the same as when the screen resolution.

I'm used load photo to editor:

void loadPhotoEditor(String filePath) {
        mPhotoEditor.clearAllViews();
        Bitmap photo = BitmapFactory.decodeFile(filePath );
        photoEditorView.getSource().setImageBitmap(photo);  
 }

and save function

@SuppressLint("MissingPermission")
    @OnClick(R.id.btnSave)
    public void onbtnEditSaveClicked() {
        progress = ProgressDialog.show(this, "İşleminiz Yapılıyor....",
                "Görsel kayıt ediliyor", true);
        mPhotoEditor.saveImage(mCurrentPhotoPath, new PhotoEditor.OnSaveListener() {
            @Override
            public void onSuccess(@NonNull String imagePath) {
                if (progress != null) {
                    progress.dismiss();
                }
                Toast.makeText(InspectionDetail_PhotoActivity.this,
                        "Değişiklikler kayıt edildi.", Toast.LENGTH_SHORT).show();
                editMode(false);
                fileAdapter.notifyDataSetChanged();
            } 
            @Override
            public void onFailure(@NonNull Exception exception) {
                if (progress != null) {
                    progress.dismiss();
                }
                Toast.makeText(InspectionDetail_PhotoActivity.this,
                        "Değişiklikler kayıt edilemedi: " + exception.getMessage(), Toast.LENGTH_SHORT).show();
                editMode(false);
            }
        });
    }

FrameLayout background invisible

Hello!

I would like to make the frameLyout of the imgPhotoEditorImage invisible, and not only when I click on the image, but for exemple if I click on a button "OK".
I can make it work one time but that's it.
Any idea how I can make it work everytime?
Thank you.

How to avoid emoji view going outside PhotoEditorView

Hello there,
Suppose i have added emoji on PhotoEditor and try to re position the emoji. The emoji goes outside the PhotoEditorView when i try to move image to extreme Left or Right edges, but if i try to re position emoji extreme Up or Down edges and if some part of Emoji is going outside the PhotoeditorView the emoji is automatically re positioned to center and I want to achieve same result when user try to reposition emoji to Left or Right and some part of emoji is going outside PhotoEditorView.....
Please help me to resolve this issue...
Thanx in advance

How can I make it work in landscape view?

Hi,

I'm making an app for tablet and need it to work in landscape view, but at the moment it doesn't work.
When I click on "stickers" 'for exemple) I can't see it (but i can when I turn it to portrait).
How can I manage that?
Thanx

Image saving with borders

when i save image if image height is low than auto black border is added into it and if width is low then auto black border is added .

can you please help me ?

New icon / logo

Hi, I am a graphic designer, I want to help others in graphic design.

After I reviewed your project, you have no logo on this project. Therefore I want to contribute to this project by creating a new logo / icon. what do you think?

Image not saving

Great work! Very useful.

I have cloned the repository and ran the sample app. Image is not saving even on pressing the save button.

If I capture the image, choose the image from the gallery or use the default image for the PhotoEditorView , save option doesn't works.

mProgressDialog is not removing. I checked the image and found the file is created with name 1527754743495.png but no output is written in it.

I tried rebooting the phone but not working.

Here are the logs:

Device: Nexus 5x
OS version: 8.1.0

05-31 13:49:03.497 8982-8982/com.burhanrashid52.imageeditor D/PhotoEditor: Image Path: /storage/emulated/0/1527754743495.png
05-31 13:49:03.618 8982-8989/com.burhanrashid52.imageeditor I/zygote64: Do partial code cache collection, code=47KB, data=58KB
    After code cache collection, code=47KB, data=58KB
    Increasing code cache capacity to 256KB
    Compiler allocated 4MB to compile void android.view.View.<init>(android.content.Context, android.util.AttributeSet, int, int)
05-31 13:49:03.818 8982-8989/com.burhanrashid52.imageeditor I/zygote64: Compiler allocated 7MB to compile void android.widget.TextView.<init>(android.content.Context, android.util.AttributeSet, int, int)
05-31 13:49:03.838 8982-8989/com.burhanrashid52.imageeditor I/zygote64: Do full code cache collection, code=124KB, data=79KB
05-31 13:49:03.839 8982-8989/com.burhanrashid52.imageeditor I/zygote64: After code cache collection, code=78KB, data=39KB

Image is not saving on some devices

Image is not saving properly in some devices i test , response is too late for example 20-30minutes after saving image show in folder . can you suggest me why this is happening.

Save problem with image scaling

In my case, the PhotoEditorView fits the whole screen, so if I save the image, it will be exactly the size of my screen, and the actual image is only a small part of that image.

Problem while getting the Adobe Creative API for release

Hi,

This app is made of the highest quality and I want to customize it and publish on Google Play.

One problem that I am facing is that I am not able to generate the key for production from the Adobe Creative Cloud.

It is asking which Creative Component is used in the app.

Can you please list the procedure for creating the key so that we can publish?

Help needed

Q1. can i use your code in my project
yes/no

Q2. if (Q1.yes) can u help me how i can use this code in my project
yes/no

Q3. do i need
capture
add "photoeditor" with "app" to use in my project

How to get removed ViewType in onRemoveViewListener()

Hello there,
We can determine which view is added on the paretView in onAddViewListener(ViewType viewType, int numberOfAddedViews) in same way i want to know which view is removed in onRemoveViewListener().
Please help me to solve this.

Logo design contribution

Hallo
I am Masud Rana
Want to creat a logo for this projects.If you have any requirements then let me know.Its free for any open source projects.

Saving the Image

Hi...Very usefull library.while saving the image the progress dialog appears and doesnt desappear anymore .it just remain turning.so i cant save the image..what to do for this?

Camera access problem!

when i open camera its always crash the app ? i search everything but nothing found anything can you please help ? i am testing on API 26

Problem with image scaling

I came across two problems while working with the library:

  1. If the image is bigger than the max OpenGL texture size(which is different depending on the device), the image won't be shown. I had this problem before when trying to display a large image in an ImageView. This is less a problem with the library but with Android itself, but nonetheless the library could handle that. My solution was to simply scale the image down to 2048px, this should work on most devices.
public static Bitmap transformBitmapTo2048px(Bitmap source){
        if(source.getHeight() <= 2048 && source.getWidth() <= 2048)
            return source;

        int targetWidth;
        int targetHeight;

        double aspectRatio = (double) source.getHeight() / (double) source.getWidth();

        if(source.getWidth() >= source.getHeight()){
            targetWidth = 2048;
            targetHeight = (int)(2048 * aspectRatio);
        } else {
            targetHeight = 2048;
            targetWidth = (int)(2048 / aspectRatio);
        }

        Bitmap result = Bitmap.createScaledBitmap(source, targetWidth, targetHeight, false);
        if (result != source) {
            // Same bitmap is returned if sizes are the same
            source.recycle();
        }
        return result;
}
  1. The current implementation for editing an image works basically by doing the image processing on the screen and the taking the contents of that to save the image. The problem with that is that the image get scaled down, possibly a lot. For example, if you have a picture in landscape, it will be scaled down quite a lot to fit into the ImageView. In my case, the PhotoEditorView fits the whole screen, so if I save the image, it will be exactly the size of my screen, and the actual (landscape) image is only a small part of that image.
    The correct approach would be to have an internal representation of the image and do all the processing on that. This would allow to keep the original size of the image (you can still show the image scaled down to fix problem 1).

Image on photoeditorview is lost in split-screen mode

Hello there,
Suppose i added image from gallery and start app in split-screen mode (multi-window mode). when app enters in split screen mode image on mPhotoEditorView is lost... just black screen is showing.
I face this issue on Android Oreo 8.0
Please test from your side and help me to solve this issue....

Add possibility to disable clearAllViews onSave

I have a process with a few steps of uploading image. First step is photo edit using this library and the second step is adding name of image. After saving photo all stickers disappear in scenario if I want to go back from screen where I'm adding name of an image. Is there possibility to add some flag should photoEditor should clear views or not on save?

How to change text cursor position

After i add text and try to edit it by long click, the cursor on text is positioned to starting instead of this it should be positioned to the end of text. please solve this issue

How to add frames

Hello sir, I want to add some frame and bellow the frame add images from gallery or camera.

How to Add his features.

Please Help me.

Thanks you

Cannot resolve symbol 'font'

Hi! I'm at the beginning of the project, trying to build a photo Editor, so I wrote this code:

//Use custom font using latest support library
Typeface mTextRobotoTf = ResourcesCompat.getFont(this, R.font.roboto_medium);

//loading font from assest
Typeface mEmojiTypeFace = Typeface.createFromAsset(getAssets(), "emojione-android.ttf");

mPhotoEditor = new PhotoEditor.Builder(this, mPhotoEditorView)
.setPinchTextScalable(true)
.setDefaultTextTypeface(mTextRobotoTf)
.setDefaultEmojiTypeface(mEmojiTypeFace)
.build();

But the "font" in , R.font.roboto_medium stays red and it says "Cannot resolve symbol 'font'

(I have add the dependencies in gradle file and sync it)

Thank you!

Brush doesn't work on api 17

Min api level for this library is 14 but when I use it on a phone with api level 17 brush draw immediately disappear after touch up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.