Bug #81657 [Opn->Nab]: Imagick::getColorSpace() always returns 0

From: Date: Thu, 25 Nov 2021 12:01:08 +0000
Subject: Bug #81657 [Opn->Nab]: Imagick::getColorSpace() always returns 0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-237978@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81657&edit=1

 ID:                 81657
 Updated by:         cmb@php.net
 Reported by:        krejcir at ics dot muni dot cz
 Summary:            Imagick::getColorSpace() always returns 0
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            *Graphics related
 Operating System:   Debian 11
 PHP Version:        7.4.26
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Please try with Imagick 3.6.0, and if the problem persists, please
report in the Imagick bug tracker[1].

[1] <https://github.com/Imagick/imagick/issues>


Previous Comments:
------------------------------------------------------------------------
[2021-11-25 11:56:20] krejcir at ics dot muni dot cz

Description:
------------
Calling Imagick::getColorspace() always returns imagick::COLORSPACE_UNDEFINED (0), no matter what is
an input image. Trying to call CLI tool "identify" always returns correct color space.

This is observed on actual Debian 11: 
php  Version: 2:7.4+76
imagemagick Version: 8:6.9.11.60+dfsg-1.3
php-imagick Version: 3.4.4+php8.0+3.4.4-2+deb11u2

Test script:
---------------
<?php

$image = new Imagick($argv[1]);
var_dump($image->getColorSpace());

?>

Expected result:
----------------
! imagick::COLORSPACE_UNDEFINED

Actual result:
--------------
imagick::COLORSPACE_UNDEFINED


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=81657&edit=1


Thread (2 messages)

« previous php.bugs (#237978) next »