Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}
env:
PYTHONUTF8: 1
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ numpy>=1.18.5
opencv-python-headless==4.10.0.84
Pillow>=7.1.2
# https://github.com/roboflow/roboflow-python/issues/390
pillow-heif<1
pillow-heif<2
pillow-avif-plugin<2
python-dateutil
python-dotenv
requests
Expand Down
2 changes: 1 addition & 1 deletion roboflow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from roboflow.models import CLIPModel, GazeModel # noqa: F401
from roboflow.util.general import write_line

__version__ = "1.1.67"
__version__ = "1.2.0"


def check_key(api_key, model, notebook, num_retries=0):
Expand Down
3 changes: 2 additions & 1 deletion roboflow/util/image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
import urllib

# Third-party imports
import pillow_avif # type: ignore[import-untyped]
import pillow_heif # type: ignore[import-untyped]
import requests
import yaml
from PIL import Image

pillow_heif.register_heif_opener(thumbnails=False) # Register for HEIF/HEIC
pillow_heif.register_avif_opener(thumbnails=False) # Register for AVIF
pillow_avif = pillow_avif # Reference pillow_avif to not remove import by accident


def check_image_path(image_path):
Expand Down
1 change: 1 addition & 0 deletions tests/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def test_check_valid_image_with_accepted_formats(self):
"woodland-rabbit.png",
"file_example_TIFF_1MB.tiff",
"sky-rabbit.heic",
"whatsnew.avif",
]

for image in images_to_test:
Expand Down