php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63283 The function levelimage of Gmagick is not working
Submitted: 2012-10-16 02:44 UTC Modified: 2012-12-16 07:10 UTC
From: luffyy at avanquest dot cn Assigned: vito (profile)
Status: Closed Package: gmagick (PECL)
PHP Version: 5.3.1 OS: Linux
Private report: No CVE-ID: None
 [2012-10-16 02:44 UTC] luffyy at avanquest dot cn
Description:
------------
Such as:
$filename = 'test.jpg';
$gm = new Gmagick($filename);
$gm->levelimage(100, 1.0, 255);
It is not working for me.
My OS is Linux, the php gmagick extension is 1.1.0RC2 , GraphicsMagick version is 
GraphicsMagick 1.3.15 2012-04-28 Q8.
But if i do this to use command line:
/opt/gmagick/bin/gm convert /data/files/test_levels.jpg -level 100,1.0,255 
/data/files/test_levels_result.jpg
but not useful for channel like photoshop's levels.


Test script:
---------------
Such as:
$filename = 'test.jpg';
$gm = new Gmagick($filename);
$gm->levelimage(100, 1.0, 255);
It is not working for me.
My OS is Linux, the php gmagick extension is 1.1.0RC2 , GraphicsMagick version is GraphicsMagick 1.3.15 2012-04-28 Q8.
But if i do this to use command line:
/opt/gmagick/bin/gm convert /data/files/test_levels.jpg -level 100,1.0,255 /data/files/test_levels_result.jpg
but not useful for channel like photoshop's levels.


Expected result:
----------------
It could be work well!

Actual result:
--------------
It is not working!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-16 02:51 UTC] luffyy at avanquest dot cn
The exact php version infomation
 [2012-10-16 02:51 UTC] luffyy at avanquest dot cn
-PHP Version: 5.3Git-2012-10-16 (Git) +PHP Version: 5.3.1
 [2012-12-15 22:45 UTC] vito@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: vito
 [2012-12-15 22:45 UTC] vito@php.net
levelImage() will now choose between MagickLevelImage and 
MagickLevelImageChannel depending on whether the channel is provided (the former 
if it isn't). To adjust  the levels of an image by scaling the colours falling 
between specified white and black points to the full available quantum range, 
leave out the channel or use Gmagick::CHANNEL_DEFAULT. The range of applicable  
channels for this method can be seen here:

http://www.graphicsmagick.org/wand/magick_wand.html#magicklevelimagechannel

Constants available here:

http://www.php.net/manual/en/gmagick.constants.php

Method interface is preserved.
 [2012-12-16 07:10 UTC] vito@php.net
The fix is currently on SVN.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 10:01:28 2024 UTC