2019-08-23 7.0.8-62 Dirk Lemstra <dirk@lem.....org>
* Added option to limit the maximum point size with -define
caption:max-pointsize=pointsize.
+ * Corrected JP2 numresolution calculation (reference:
+ https://github.com/ImageMagick/ImageMagick/issues/1673)
2019-08-19 7.0.8-62 Cristy <quetzlzacatenango@image...>
* Conditionally compile call to AcquireCLocale() (reference
i;
for (i=1; i < 6; i++)
- if ((((size_t) 1UL << (i+2)) > width) &&
- (((size_t) 1UL << (i+2)) > height))
+ if ((width < ((size_t) 1UL << i)) || (height < ((size_t) 1UL << i)))
break;
return(i);
}