File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 1212 # Change directory to project root.
1313 os .chdir (os .path .join (os .path .dirname (os .path .dirname (os .path .abspath (__file__ ))), "tests" ))
1414 pillow_heif .register_heif_opener ()
15- # "images/hif/93FG5564.hif" - contains 1 image and two thumbnails for it.
16- # "images/hif/93FG5559.hif" - contains 1 image and two thumbnails for it.
17- # "images/nokia/collection/season_collection_1440x960.heic" - contains 4 images and 4 thumbnails.
1815 image_path = Path ("images/pug_1_1.heic" )
1916 try :
2017 img = Image .open (image_path )
Original file line number Diff line number Diff line change 1111if __name__ == "__main__" :
1212 # Change directory to project root.
1313 os .chdir (os .path .join (os .path .dirname (os .path .dirname (os .path .abspath (__file__ ))), "tests" ))
14- # "images/hif/93FG5564.hif" - contains 1 image and two thumbnails for it.
15- # "images/hif/93FG5559.hif" - contains 1 image and two thumbnails for it.
16- # "images/nokia/collection/season_collection_1440x960.heic" - contains 4 images and 4 thumbnails.
17- image_path = Path ("../converted/alpha_.heic" )
14+ image_path = Path ("images/nokia/alpha.heic" )
1815 try :
1916 if not pillow_heif .is_supported (image_path ):
2017 raise ValueError ("Unsupported image." )
You can’t perform that action at this time.
0 commit comments