|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81657 Imagick::getColorSpace() always returns 0
Submitted: 2021-11-25 11:56 UTC Modified: 2021-11-25 12:01 UTC
From: krejcir at ics dot muni dot cz Assigned: cmb (profile)
Status: Not a bug Package: *Graphics related
PHP Version: 7.4.26 OS: Debian 11
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: krejcir at ics dot muni dot cz
New email:
PHP Version: OS:


 [2021-11-25 11:56 UTC] krejcir at ics dot muni dot cz
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:
php-imagick Version: 3.4.4+php8.0+3.4.4-2+deb11u2

Test script:

$image = new Imagick($argv[1]);


Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-11-25 12:01 UTC]
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2021-11-25 12:01 UTC]
Please try with Imagick 3.6.0, and if the problem persists, please
report in the Imagick bug tracker[1].

[1] <>
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 14:01:34 2024 UTC