jenssegers / jenssegers/imagehash

Uncaught Error: Call to a member function toHex()

Open
#41 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
2.1k
Forks
172
PR merge metrics
No merged PRs in 30d

Description

```
include('vendor/autoload.php');

use Jenssegers\ImageHash\ImageHash;
use Jenssegers\ImageHash\Implementations\DifferenceHash;

$hasher = new ImageHash(new DifferenceHash());
$hash = $hasher->hash('img/forest-copyright.jpg');

echo $hash->toHex();` <----- Fatal error: Uncaught Error: Call to a member function toHex() on string ...
```
Why?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the provided PHP snippet using ImageHash and DifferenceHash, then inspect the return value from ImageHash::hash before the toHex() call. Check the project’s API documentation or tests for the expected hash type; done means the cause and correct usage are clarified or covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
computer-vision
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.