php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59497 setStrokeWidth fails after setlocale
Submitted: 2010-11-07 13:40 UTC Modified: 2010-11-18 06:55 UTC
From: maxxi165 at tut dot by Assigned:
Status: Closed Package: imagick (PECL)
PHP Version: 5.2.13 OS: linux (centos)
Private report: No CVE-ID: None
 [2010-11-07 13:40 UTC] maxxi165 at tut dot by
Description:
------------
after setlocale(LC_ALL, "ru_RU") ImagickDraw makes wrong stroked text.
checked at php 5.3.3 and 5.2.14 with ImageMagick 6.6.5-5 and imagick 3.0.1RC2

Reproduce code:
---------------
<?php
setlocale(LC_ALL, "ru_RU");
$im = new Imagick();
$im->newImage(100, 100, 'white');
$im->setImageFormat('jpg');
$draw = new ImagickDraw();
$draw->setStrokeColor('black');
$draw->setStrokeWidth(1);
$draw->annotation(10, 10, 'text label');
$im->drawImage($draw);
header( "Content-Type: image/jpg" );
echo $im;
?>


Expected result:
----------------
expected stroked text like this http://img835.imageshack.us/img835/5754/testim3.jpg

Actual result:
--------------
the result is http://img210.imageshack.us/img210/2858/testim4.jpg

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-07 13:45 UTC] mkoppanen@php.net
Can you try setting ini-setting imagick.locale_fix to On?
 [2010-11-07 15:03 UTC] maxxi165 at tut dot by
yes! with imagick.locale_fix=on works fine.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 03:01:32 2024 UTC