]> git.pld-linux.org Git - packages/php-pear-Image_Transform.git/blob - php-pear-Image_Transform-IM-patches.patch
- kill compat functions at the price of increasing php version requirement to 4.3.0
[packages/php-pear-Image_Transform.git] / php-pear-Image_Transform-IM-patches.patch
1 --- php-pear-Image_Transform-0.2.org/Image_Transform-0.2/Driver/IM.php  Tue Jan  7 18:32:51 2003
2 +++ php-pear-Image_Transform-0.2/Image_Transform-0.2/Driver/IM.php      Tue Jan  7 18:32:13 2003
3 @@ -176,6 +176,17 @@
4      }
5  
6      /**
7 +     * Set profile
8 +     *
9 +     * @param string $profile
10 +     *
11 +     * @return none
12 +     */
13 +    function setProfile($profile) {
14 +        $this->command['profile'] = "+profile ". escapeshellarg($profile);
15 +    }
16 +
17 +    /**
18       * Save the image file
19       *
20       * @param $filename string  the name of the file to write to
21 --- php-pear-Image_Transform-0.2/Image_Transform-0.2/Driver/IM.php~     Mon Sep  9 09:23:23 2002
22 +++ php-pear-Image_Transform-0.2/Image_Transform-0.2/Driver/IM.php      Tue Dec  3 23:36:39 2002
23 @@ -139,6 +138,33 @@
24      } // End addText
25  
26      /**
27 +     * Create border around image
28 +     *
29 +     * @param int $size
30 +     * @param string $color
31 +     *
32 +     * @return none
33 +     */
34 +       function addBorder($size = 1, $color = 'black') {
35 +               $this->command['zBorder'] = "-border ${size}x${size} -bordercolor $color";
36 +       }
37 +
38 +    /**
39 +     * Create thumbnail: resize and add border
40 +     *
41 +     * @param int $new_w
42 +     * @param int $new_h
43 +     * @param int $size
44 +     * @param string $color
45 +     *
46 +     * @return none
47 +     */
48 +       function thumbnail($new_w, $new_h, $size, $color) {
49 +               $this->resize($new_w, $new_h);
50 +               $this->addBorder($size, $color);
51 +       }
52 +
53 +    /**
54       * Adjust the image gamma
55       *
56       * @param float $outputgamma
This page took 0.045706 seconds and 3 git commands to generate.