How to get colour from image in react native [closed]












0















It seem silly question but I am new to react technology . Here I want to pick a color from image . For Example When User select a image to upload then I want to get all color which are used in image . If it possible please give me suggestion or solution or give me some resource ( video ) to complete my project



Thanks










share|improve this question













closed as too broad by Kaiido, Book Of Zeus, Ian Lim, greg-449, Springer F Jan 2 at 11:02


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.



















  • Try this if you are still looking for something like that npmjs.com/package/get-image-colors

    – Basav
    Feb 16 at 2:44
















0















It seem silly question but I am new to react technology . Here I want to pick a color from image . For Example When User select a image to upload then I want to get all color which are used in image . If it possible please give me suggestion or solution or give me some resource ( video ) to complete my project



Thanks










share|improve this question













closed as too broad by Kaiido, Book Of Zeus, Ian Lim, greg-449, Springer F Jan 2 at 11:02


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.



















  • Try this if you are still looking for something like that npmjs.com/package/get-image-colors

    – Basav
    Feb 16 at 2:44














0












0








0








It seem silly question but I am new to react technology . Here I want to pick a color from image . For Example When User select a image to upload then I want to get all color which are used in image . If it possible please give me suggestion or solution or give me some resource ( video ) to complete my project



Thanks










share|improve this question














It seem silly question but I am new to react technology . Here I want to pick a color from image . For Example When User select a image to upload then I want to get all color which are used in image . If it possible please give me suggestion or solution or give me some resource ( video ) to complete my project



Thanks







javascript reactjs react-native ecmascript-6






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 1 at 18:54









JonJon

757




757




closed as too broad by Kaiido, Book Of Zeus, Ian Lim, greg-449, Springer F Jan 2 at 11:02


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as too broad by Kaiido, Book Of Zeus, Ian Lim, greg-449, Springer F Jan 2 at 11:02


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • Try this if you are still looking for something like that npmjs.com/package/get-image-colors

    – Basav
    Feb 16 at 2:44



















  • Try this if you are still looking for something like that npmjs.com/package/get-image-colors

    – Basav
    Feb 16 at 2:44

















Try this if you are still looking for something like that npmjs.com/package/get-image-colors

– Basav
Feb 16 at 2:44





Try this if you are still looking for something like that npmjs.com/package/get-image-colors

– Basav
Feb 16 at 2:44












3 Answers
3






active

oldest

votes


















2














I am not sure this suffices for your specifications, but Color Thief is a JS library which extracts the dominant color from an image. You would not be able to use it as such since it is created specifically for web and makes use of canvas, but there is not much code to it so with some work you could get this to work I guess ...






share|improve this answer































    2














    The best way to do image processing is on Backend. But there are cases where you want to do theming on the device based on the image. In that case, you can use an iOS cocopod like ChameleonFramework and create a Native Bridge to call iOS classes.



    To create a Native Bridge you can check out Native iOS Bridge for iOS and Android






    share|improve this answer































      2














      I suggest that you could try Google cloud vision. After upload an image, Google returns relevant information including colors






      share|improve this answer






























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        2














        I am not sure this suffices for your specifications, but Color Thief is a JS library which extracts the dominant color from an image. You would not be able to use it as such since it is created specifically for web and makes use of canvas, but there is not much code to it so with some work you could get this to work I guess ...






        share|improve this answer




























          2














          I am not sure this suffices for your specifications, but Color Thief is a JS library which extracts the dominant color from an image. You would not be able to use it as such since it is created specifically for web and makes use of canvas, but there is not much code to it so with some work you could get this to work I guess ...






          share|improve this answer


























            2












            2








            2







            I am not sure this suffices for your specifications, but Color Thief is a JS library which extracts the dominant color from an image. You would not be able to use it as such since it is created specifically for web and makes use of canvas, but there is not much code to it so with some work you could get this to work I guess ...






            share|improve this answer













            I am not sure this suffices for your specifications, but Color Thief is a JS library which extracts the dominant color from an image. You would not be able to use it as such since it is created specifically for web and makes use of canvas, but there is not much code to it so with some work you could get this to work I guess ...







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 1 at 19:46









            dentemmdentemm

            2,81121225




            2,81121225

























                2














                The best way to do image processing is on Backend. But there are cases where you want to do theming on the device based on the image. In that case, you can use an iOS cocopod like ChameleonFramework and create a Native Bridge to call iOS classes.



                To create a Native Bridge you can check out Native iOS Bridge for iOS and Android






                share|improve this answer




























                  2














                  The best way to do image processing is on Backend. But there are cases where you want to do theming on the device based on the image. In that case, you can use an iOS cocopod like ChameleonFramework and create a Native Bridge to call iOS classes.



                  To create a Native Bridge you can check out Native iOS Bridge for iOS and Android






                  share|improve this answer


























                    2












                    2








                    2







                    The best way to do image processing is on Backend. But there are cases where you want to do theming on the device based on the image. In that case, you can use an iOS cocopod like ChameleonFramework and create a Native Bridge to call iOS classes.



                    To create a Native Bridge you can check out Native iOS Bridge for iOS and Android






                    share|improve this answer













                    The best way to do image processing is on Backend. But there are cases where you want to do theming on the device based on the image. In that case, you can use an iOS cocopod like ChameleonFramework and create a Native Bridge to call iOS classes.



                    To create a Native Bridge you can check out Native iOS Bridge for iOS and Android







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jan 2 at 4:51









                    Abhishek NalwayaAbhishek Nalwaya

                    845




                    845























                        2














                        I suggest that you could try Google cloud vision. After upload an image, Google returns relevant information including colors






                        share|improve this answer




























                          2














                          I suggest that you could try Google cloud vision. After upload an image, Google returns relevant information including colors






                          share|improve this answer


























                            2












                            2








                            2







                            I suggest that you could try Google cloud vision. After upload an image, Google returns relevant information including colors






                            share|improve this answer













                            I suggest that you could try Google cloud vision. After upload an image, Google returns relevant information including colors







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 2 at 4:55









                            Vu LuuVu Luu

                            467310




                            467310















                                Popular posts from this blog

                                MongoDB - Not Authorized To Execute Command

                                How to fix TextFormField cause rebuild widget in Flutter

                                Npm cannot find a required file even through it is in the searched directory