Skip to content

Commit

Permalink
Added missing libtiff version check (#355).
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Dec 11, 2024
1 parent 729a77f commit 09e5a7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions coders/tiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@ static MagickBooleanType TIFFGetEXIFProperties(TIFF *tiff,Image *image)

static MagickBooleanType TIFFGetGPSProperties(TIFF *tiff,Image *image)
{
#if (TIFFLIB_VERSION >= 20210416)
MagickBooleanType
status;

Expand Down Expand Up @@ -813,6 +814,10 @@ static MagickBooleanType TIFFGetGPSProperties(TIFF *tiff,Image *image)
status=TIFFSetImageProperties(tiff,image,"exif:GPS");
TIFFSetDirectory(tiff,directory);
return(status);
#else
magick_unreferenced(tiff);
magick_unreferenced(image);
#endif
}

static int TIFFMapBlob(thandle_t image,tdata_t *base,toff_t *size)
Expand Down

0 comments on commit 09e5a7c

Please sign in to comment.