Skip to content

Commit

Permalink
Added missing ALPHACHANNEL_OFF_IF_OPAQUE constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danack committed Feb 9, 2024
1 parent c4c984f commit 6114c6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ChangeLog
Expand Up @@ -4,7 +4,7 @@ Unreleased
* You can now pass null to ImagickDraw::setStrokeDashArray() to reset the dash array.
- Added:
* function Imagick::clutImageWithInterpolate(Imagick $lookup_table, int $pixel_interpolate_method): bool {}
* Constants Imagick::COMPRESSION_BC5, Imagick::COMPRESSION_BC7, Imagick::COMPRESSION_LERC, Imagick::DIRECTION_TOP_TO_BOTTOM
* Constants Imagick::COMPRESSION_BC5, Imagick::COMPRESSION_BC7, Imagick::COMPRESSION_LERC, Imagick::DIRECTION_TOP_TO_BOTTOM, Imagick::ALPHACHANNEL_OFF_IF_OPAQUE

3.7.0
- Added:
Expand Down
7 changes: 7 additions & 0 deletions imagick_helpers.c
Expand Up @@ -1823,6 +1823,13 @@ void php_imagick_initialize_constants(TSRMLS_D)
IMAGICK_REGISTER_CONST_LONG("ALPHACHANNEL_ASSOCIATE", AssociateAlphaChannel);
IMAGICK_REGISTER_CONST_LONG("ALPHACHANNEL_DISSOCIATE", DisassociateAlphaChannel);
#endif

#if MagickLibVersion >= 0x712
// Technically >= 7.1.1-26 but we still don't have a mechanism for
// detecting patch versions.
IMAGICK_REGISTER_CONST_LONG("ALPHACHANNEL_OFF_IF_OPAQUE", OffIfOpaqueAlphaChannel);
#endif

/*
DiscreteAlphaChannel, CopyAlphaChannel,
DisassociateAlphaChannel, DeactivateAlphaChannel,
Expand Down

0 comments on commit 6114c6f

Please sign in to comment.