note 130473 added to imagick.constants
| From: | aschmidt@anamera.net | Date: | Mon, 08 Sep 2025 00:19:40 +0000 |
| Subject: | note 130473 added to imagick.constants | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222334@lists.php.net to get a copy of this message | ||
Documentation seems to be missing an enumeration of the int values that getColorspace will return.
Here the int values of PHP 8.4.10:
Imagick::COLORSPACE_UNDEFINED 0
Imagick::COLORSPACE_CMY 1
Imagick::COLORSPACE_CMYK 2
Imagick::COLORSPACE_GRAY 3
Imagick::COLORSPACE_HSB 6
Imagick::COLORSPACE_HSL 8
Imagick::COLORSPACE_HWB 10
Imagick::COLORSPACE_LOG 15
Imagick::COLORSPACE_OHTA 18
Imagick::COLORSPACE_RGB 21
Imagick::COLORSPACE_SRGB 23
Imagick::COLORSPACE_TRANSPARENT 24
Imagick::COLORSPACE_XYZ 26
Imagick::COLORSPACE_YCBCR 27
Imagick::COLORSPACE_YCC 28
Imagick::COLORSPACE_YIQ 30
Imagick::COLORSPACE_YPBPR 31
Imagick::COLORSPACE_YUV 32
Undefined are:
Imagick::COLORSPACE_LAB
Imagick::COLORSPACE_REC601LUMA
Imagick::COLORSPACE_REC709LUMA
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 2600:4040:a518:5200:c15c:ee08:3611:bd0)
----
Manual Page -- https://php.net/manual/en/imagick.constants.php
Edit -- https://main.php.net/note/edit/130473
Del: integrated -- https://main.php.net/note/delete/130473/integrated
Del: useless -- https://main.php.net/note/delete/130473/useless
Del: bad code -- https://main.php.net/note/delete/130473/bad+code
Del: spam -- https://main.php.net/note/delete/130473/spam
Del: non-english -- https://main.php.net/note/delete/130473/non-english
Del: in docs -- https://main.php.net/note/delete/130473/in+docs
Del: other reasons-- https://main.php.net/note/delete/130473
Reject -- https://main.php.net/note/reject/130473
Search -- https://main.php.net/manage/user-notes.php