File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # PyImageCUDA 0.1.3
1+ # PyImageCUDA 0.1.4
22
33[ ![ PyPI version] ( https://img.shields.io/pypi/v/pyimagecuda.svg )] ( https://pypi.org/project/pyimagecuda/ )
44[ ![ Build Status] ( https://github.com/offerrall/pyimagecuda/actions/workflows/build.yml/badge.svg )] ( https://github.com/offerrall/pyimagecuda/actions )
Original file line number Diff line number Diff line change 11import ctypes
22import sys
33
4- __version__ = "0.1.3 "
4+ __version__ = "0.1.4 "
55
66def _check_nvidia_driver ():
77 try :
Original file line number Diff line number Diff line change @@ -75,11 +75,20 @@ def load(
7575 filepath: Path to the image file
7676 f32_buffer: Optional float32 buffer to reuse
7777 u8_buffer: Optional uint8 buffer to reuse
78- autorotate: If True, applies EXIF orientation automatically
78+ autorotate: If True, applies EXIF orientation automatically (only for formats that support it)
7979
8080 Docs & Examples: https://offerrall.github.io/pyimagecuda/io/#loading-images
8181 """
82- vips_img = pyvips .Image .new_from_file (filepath , access = 'sequential' , autorotate = autorotate )
82+ try :
83+ if autorotate :
84+ vips_img = pyvips .Image .new_from_file (filepath , access = 'sequential' , autorotate = True )
85+ else :
86+ vips_img = pyvips .Image .new_from_file (filepath , access = 'sequential' )
87+ except pyvips .error .Error as e :
88+ if 'does not support optional argument autorotate' in str (e ):
89+ vips_img = pyvips .Image .new_from_file (filepath , access = 'sequential' )
90+ else :
91+ raise
8392
8493 if vips_img .bands == 1 :
8594 vips_img = vips_img .bandjoin ([vips_img , vips_img , vips_img ])
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
44
55[project ]
66name = " pyimagecuda"
7- version = " 0.1.3 "
7+ version = " 0.1.4 "
88description = " GPU-accelerated image processing library for Python"
99readme = " README.md"
1010requires-python = " >=3.10"
You can’t perform that action at this time.
0 commit comments