Skip to content

Commit

Permalink
MagickIdentifyImageType only for ImageMagick-7
Browse files Browse the repository at this point in the history
  • Loading branch information
emcconville committed Dec 13, 2023
1 parent d3cb95a commit f768b57
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wand/cdefs/magick_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,11 @@ def load(lib, IM_VERSION):
lib.MagickHoughLineImage = None
lib.MagickIdentifyImage.argtypes = [c_void_p]
lib.MagickIdentifyImage.restype = c_void_p
lib.MagickIdentifyImageType.argtypes = [c_void_p]
lib.MagickIdentifyImageType.restype = c_int
if IM_VERSION >= 0x700
lib.MagickIdentifyImageType.argtypes = [c_void_p]
lib.MagickIdentifyImageType.restype = c_int
else:
lib.MagickIdentifyImageType = None
if is_im_6:
lib.MagickImplodeImage.argtypes = [c_void_p, c_double]
else:
Expand Down

0 comments on commit f768b57

Please sign in to comment.