Comments (1)
You need to store the hash as an unsigned bigint on MySQL side. (Unfortunately MySQL can't do bitwise operations on varbinary types)
Be careful to keep the number as a string on PHP side because PHP doesn't support unsigned integers and the hash can "overflow" and be cast to float when using the Hash::toInt() method.
from imagehash.
Related Issues (20)
- Differences using ImageHash Class and MySQL DB comparision HOT 3
- q
- Return value of Jenssegers\ImageHash\Hash::toInt() must be of the type int, float returned HOT 14
- ImageHash does not work on remote directories in macOS Catalina HOT 1
- Crop solid background colours (e.g. black or white borders) HOT 2
- BlockHash HOT 3
- Library does not support php 8.0.1 HOT 3
- 对于相同的图片产生了不同的结果
- BUG : Uncaught Error: Call to a member function toHex() on string HOT 1
- BUG : Uncaught Error: Call to a member function toHex() on string
- phpseclib/phpseclib version issue was reported when composer introduced the package
- Hash size HOT 4
- Archive this repo
- Same result for different images HOT 1
- Hello, MAY I ask, these two pictures, visible to the naked eye, are different, why after comparison, the display is the same? HOT 1
- Undocumented breaking change due to type hints HOT 1
- New maintainers HOT 3
- Hash::fromHex HOT 8
- Support for intervention/image ^3.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagehash.