From ac64c93bf8714550d47a546faec59cfea0b4daeb Mon Sep 17 00:00:00 2001 From: friendica Date: Fri, 26 Apr 2013 15:09:35 -0700 Subject: doc update --- doc/html/classphoto__imagick.html | 459 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 459 insertions(+) create mode 100644 doc/html/classphoto__imagick.html (limited to 'doc/html/classphoto__imagick.html') diff --git a/doc/html/classphoto__imagick.html b/doc/html/classphoto__imagick.html new file mode 100644 index 000000000..678796c75 --- /dev/null +++ b/doc/html/classphoto__imagick.html @@ -0,0 +1,459 @@ + + + + + + +The Red Project: photo_imagick Class Reference + + + + + + + + + + + + + +
+
+ + + + + + + +
+
The Red Project +
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
photo_imagick Class Reference
+
+
+
+Inheritance diagram for photo_imagick:
+
+
+ + +photo_driver + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 supportedTypes ()
 
 get_FormatsMap ()
 
 load ($data, $type)
 
 destroy ()
 
 setDimensions ()
 
 getImage ()
 
 doScaleImage ($dest_width, $dest_height)
 
 rotate ($degrees)
 
 flip ($horiz=true, $vert=false)
 
 cropImage ($max, $x, $y, $w, $h)
 
 imageString ()
 
- Public Member Functions inherited from photo_driver
 supportedTypes ()
 
 load ($data, $type)
 
 destroy ()
 
 setDimensions ()
 
 getImage ()
 
 doScaleImage ($new_width, $new_height)
 
 rotate ($degrees)
 
 flip ($horiz=true, $vert=false)
 
 cropImage ($max, $x, $y, $w, $h)
 
 imageString ()
 
 __construct ($data, $type='')
 
 __destruct ()
 
 is_valid ()
 
 getWidth ()
 
 getHeight ()
 
 saveImage ($path)
 
 getType ()
 
 getExt ()
 
 scaleImage ($max)
 
 scaleImageUp ($min)
 
 scaleImageSquare ($dim)
 
 orient ($filename)
 
 store ($aid, $uid, $xchan, $rid, $filename, $album, $scale, $profile=0, $allow_cid= '', $allow_gid= '', $deny_cid= '', $deny_gid= '')
 
+ + + + + + + + + + + + + + +

+Additional Inherited Members

- Protected Attributes inherited from photo_driver
 $image
 
 $width
 
 $height
 
 $valid
 
 $type
 
 $types
 
+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
photo_imagick::cropImage ( $max,
 $x,
 $y,
 $w,
 $h 
)
+
+

We need to remove the canva, or the image is not resized to the crop: http://php.net/manual/en/imagick.cropimage.php#97232

+ +
+
+ +
+
+ + + + + + + +
photo_imagick::destroy ()
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
photo_imagick::doScaleImage ( $dest_width,
 $dest_height 
)
+
+

If it is not animated, there will be only one iteration here, so don't bother checking

+ +

Referenced by cropImage().

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
photo_imagick::flip ( $horiz = true,
 $vert = false 
)
+
+ +
+
+ +
+
+ + + + + + + +
photo_imagick::get_FormatsMap ()
+
+ +

Referenced by load().

+ +
+
+ +
+
+ + + + + + + +
photo_imagick::getImage ()
+
+ +
+
+ +
+
+ + + + + + + +
photo_imagick::imageString ()
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
photo_imagick::load ( $data,
 $type 
)
+
+

Setup the image to the format it will be saved to

+

setup the compression here, so we'll do it only once

+

From http://www.imagemagick.org/script/command-line-options.php#quality:

+

'For the MNG and PNG image formats, the quality value sets the zlib compression level (quality / 10) and filter-type (quality % 10). The default PNG "quality" is 75, which means compression level 7 with adaptive PNG filtering, unless the image has a color map, in which case it means compression level 7 with no PNG filtering'

+ +
+
+ +
+
+ + + + + + + + +
photo_imagick::rotate ( $degrees)
+
+ +
+
+ +
+
+ + + + + + + +
photo_imagick::setDimensions ()
+
+ +

Referenced by doScaleImage(), flip(), load(), and rotate().

+ +
+
+ +
+
+ + + + + + + +
photo_imagick::supportedTypes ()
+
+ +
+
+
The documentation for this class was generated from the following file: +
+
+ -- cgit v1.2.3