php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71390 Further distortion constants
Submitted: 2016-01-16 15:46 UTC Modified: 2016-05-17 05:57 UTC
From: lee dot traynor at skeptic dot de Assigned: danack (profile)
Status: Assigned Package: imagick (PECL)
PHP Version: 7.0.2 OS: Windows XP/7/8/10
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-01-16 15:46 UTC] lee dot traynor at skeptic dot de
Description:
------------
---
From manual page: http://www.php.net/imagick.distortimage
---

Since about 200i9 ImageMagick's + distort can also take the constants Cylinder2Plane and Plane2Cylinder, but these are lacking in the documentation for imagick.

Cyclinder2Plane takes up to 6 parameters:
fov_angle   center_x,y   fov_output   dest_center_x,y
of which only the first is necessary; the default values of the center values are width/2, height/2 and that of fov_output is 0.

Plane2Cylinder takes three:
fov_angle   center_x,y
again only the first is necessary.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-16 23:40 UTC] danack@php.net
They are there:
https://github.com/mkoppanen/imagick/blob/master/imagick_helpers.c#L1609-L1610

Do you fancy adding them to the documentation yourself?
 [2016-01-20 17:27 UTC] lee dot traynor at skeptic dot de
While we are at it: all these constants can be added to the documentation.

imagick::DISTORTION_BILINEARFORWARD (integer)
This constant is available if Imagick has been compiled against ImageMagick version 6.5.4 or higher.
imagick::DISTORTION_BILINEARREVERSE (integer)
This constant is available if Imagick has been compiled against ImageMagick version 6.5.4 or higher.
imagick::DISTORTION_RESIZE (integer)
This constant is available if Imagick has been compiled against ImageMagick version 6.7.0 or higher.
imagick::DISTORTION_CYLINDER2PLANE (integer)
This constant is available if Imagick has been compiled against ImageMagick version 6.7.1 or higher.
imagick::DISTORTION_PLANE2CYLINDER (integer)
This constant is available if Imagick has been compiled against ImageMagick version 6.7.1 or higher.

I wouldn't know how to add them but as far as I can see this information should be on the page "Predefined constants".

Can you put them up for me?
 [2016-05-17 05:57 UTC] krakjoe@php.net
-Type: Feature/Change Request +Type: Documentation Problem
 [2016-05-17 05:57 UTC] krakjoe@php.net
-Assigned To: +Assigned To: danack
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC