php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59658 Filter parameter doesn't work in resizeImage
Submitted: 2011-03-09 13:29 UTC Modified: 2013-02-18 00:35 UTC
From: vadim dot dorokhov at gmail dot com Assigned: vitoc (profile)
Status: No Feedback Package: gmagick (PECL)
PHP Version: 5.2.6 OS: Debian GNU/Linux 5.0.8 (lenny)
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: vadim dot dorokhov at gmail dot com
New email:
PHP Version: OS:

 

 [2011-03-09 13:29 UTC] vadim dot dorokhov at gmail dot com
Description:
------------
Filter parameter in resizeImage method seems not working.
I always get the same result regardless of selected filter.
I also tried to test resize examples from repository (branches/poc/tests/gmagick-003-resize_variations.phpt), but attributes of resizeImage method in that example go in wrong order, filter is used instead of blur and vice versa.

Reproduce code:
---------------
$image = new Gmagick();
$image->readImage('test.jpg');
$image->setCompressionQuality(93);
$image->resizeImage(500, 500, Gmagick::FILTER_BOX, 1, true);
$image->writeImage('test_resized.jpg');
$image->destroy();

Expected result:
----------------
Image resized to 500x500 with Box filter

Actual result:
--------------
Image resized to 500x500 with default filter.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-01 11:31 UTC] vito@php.net
Hi Vadim,

Had checked the source that the right long constant is 
passed onto GraphicsMagick. 

Is it possible for you to supply the source image (with 
intended output image will be even better)?

Thanks.

Vito
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 08:01:29 2024 UTC