---
title: "imagehash 4.0 Breaking Changes on PyPI | Since.dev"
description: "What each imagehash release removed, renamed or changed: 6 breaking changes in 2 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/imagehash
last_updated: 2026-12-04
---

# imagehash breaking changes

imagehash 4.0 (December 7, 2017) is its newest release with breaking changes, 4 of them. The first: Signature changed imagehash.hex_to_hash. Every breaking API change we have recorded in imagehash on PyPI: 6 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.3.2`, released February 1, 2025. 

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [2.0](#v-2-0) to [4.0](#v-4-0): 4 breaking changes in 1 version.

## imagehash 4.0 breaking changes

imagehash 4.0, released December 7, 2017: 4 breaking changes.

- **Signature changed** `imagehash.hex_to_hash`  

Was def hex_to_hash(hexstr, hash_size=8); now def hex_to_hash(hexstr). [pypi.org](https://pypi.org/project/ImageHash/4.0/)
- **Signature changed** `imagehash.tests.TestImageHash.check_hash_length`  

Was def check_hash_length(self, func, image, sizes); now def check_hash_length(self, func, image, sizes=range(2, 21)). [pypi.org](https://pypi.org/project/ImageHash/4.0/)
- **Signature changed** `imagehash.tests.TestImageHash.check_hash_size`  

Was def check_hash_size(self, func, image, size); now def check_hash_size(self, func, image, sizes=range(-1, 2)). [pypi.org](https://pypi.org/project/ImageHash/4.0/)
- **Signature changed** `imagehash.tests.TestImageHash.check_hash_stored`  

Was def check_hash_stored(self, func, image); now def check_hash_stored(self, func, image, sizes=range(2, 21)). [pypi.org](https://pypi.org/project/ImageHash/4.0/)

## imagehash 2.0 breaking changes

imagehash 2.0, released June 28, 2016: 2 breaking changes.

- **Signature changed** `imagehash.phash`  

Was def phash(image, hash_size=8); now def phash(image, hash_size=8, highfreq_factor=4). [pypi.org](https://pypi.org/project/ImageHash/2.0/)
- **Signature changed** `imagehash.phash_simple`  

Was def phash_simple(image, hash_size=8); now def phash_simple(image, hash_size=8, highfreq_factor=4). [pypi.org](https://pypi.org/project/ImageHash/2.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
