|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2016-06-26 22:50 UTC] danack@php.net
 
-Assigned To:
+Assigned To: danack
  [2016-06-26 22:58 UTC] danack@php.net
  [2016-06-27 19:47 UTC] danack@php.net
 
-Status: Assigned
+Status: Feedback
  [2016-06-27 19:47 UTC] danack@php.net
  [2016-06-28 02:19 UTC] me at liudonghua dot net
  [2016-06-30 20:48 UTC] danack@php.net
  [2016-07-10 04:22 UTC] pecl-dev at lists dot php dot net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 06:00:01 2025 UTC | 
Description: ------------ The sample code is below. $fg and $lg used in ImagickDraw are unexcepted in image. php version: 5.6.21, imagick version: 3.4.2. Test script: --------------- $fg = "cmyk(0,0,0,100)"; $bg = "cmyk(0,1,0,0)"; $lg = "cmyk(1,0,0,0)"; $image_size = 200; $fg_pixel = new ImagickPixel($fg); $bg_pixel = new ImagickPixel($bg); $lg_pixel = new ImagickPixel($lg); $image = new Imagick(); $image->newImage($image_size, $image_size, $bg_pixel); $image->setImageColorspace(Imagick::COLORSPACE_CMYK); $image->setImageFormat('jpeg'); $profiles = $image->getImageProfiles('*', false); $has_icc_profile = (array_search('icc', $profiles) !== false); if ($has_icc_profile === false) { echo "load icc file.\n"; $icc_cmyk = file_get_contents('JapanColor2001Coated.icc'); $image->profileImage('icc', $icc_cmyk); unset($icc_cmyk); } $draw = new ImagickDraw(); $draw->setStrokeColor($lg_pixel); $draw->setFillColor($fg_pixel); $draw->setStrokeWidth(6); $draw->rectangle(30,30,80,80); $image->drawImage($draw); $image->writeImage("cmyk.jpg"); $fg_pixel->destroy(); $bg_pixel->destroy(); $draw->destroy(); $image->destroy();