Skip to main content

images: remove pillow_heif as a dependency

ID
36e882d
date
2026-05-24 07:55:23+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
e1e0aea
message
images: remove pillow_heif as a dependency

It's been years since I used a HEIF image with this script, so for now
remove it until I need to use it again (if ever).
changed files
3 files, 9 deletions

Changed files

images/srgbify.py (2777) → images/srgbify.py (2707)

diff --git a/images/srgbify.py b/images/srgbify.py
index 2396485..38536db 100755
--- a/images/srgbify.py
+++ b/images/srgbify.py
@@ -21,10 +21,6 @@ import typing
 
 from PIL import Image, ImageCms, ImageOps
 from PIL.ImageCms import PyCMSError
-from pillow_heif import register_heif_opener
-
-
-register_heif_opener()
 
 
 def get_profile_description(icc_profile):

requirements.in (180) → requirements.in (168)

diff --git a/requirements.in b/requirements.in
index 5b0dfcd..f0da590 100644
--- a/requirements.in
+++ b/requirements.in
@@ -4,7 +4,6 @@ cogapp
 humanize
 iterm2
 Pillow
-pillow_heif
 pygments  # Used as 'pygmentize' in 'pp_xml.sh'
 pypdf
 pytest

requirements.txt (1510) → requirements.txt (1434)

diff --git a/requirements.txt b/requirements.txt
index 994a70c..55dd63b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -28,10 +28,6 @@ mutagen==1.47.0
 packaging==26.0
     # via pytest
 pillow==12.2.0
-    # via
-    #   -r requirements.in
-    #   pillow-heif
-pillow-heif==1.3.0
     # via -r requirements.in
 pluggy==1.6.0
     # via pytest