Home > Back-end >  Compare two image for similarity or perfect match in Laravel 8
Compare two image for similarity or perfect match in Laravel 8

Time:10-04

I have an image that stored into my database & I need to build a function that give me true or false if the image that sent into the request is the same one or similar to that stored in my database? I need to know if there any package in Laravel App or some way that help me with that

CodePudding user response:

Encode your image in base64 and compare with value in database. You don't need any package.

CodePudding user response:

What I understood you need some request validation for process image and compare.this is not the good idea.but you can use: https://www.php.net/manual/en/imagick.compareimages.php i recommend you use it in queue

  • Related