~ubuntu-branches/ubuntu/saucy/php-imagick/saucy

« back to all changes in this revision

Viewing changes to imagick-3.1.0RC1/examples/thumbnail.php

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý
  • Date: 2013-07-18 15:24:47 UTC
  • mfrom: (17.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20130718152447-x1fcueczc657pmg9
Tags: 3.1.0~rc2-1
* Disable ltmain.sh patch since it cannot be applied cleanly on all Ubuntus
* Update patches to RC2
* Update imagick to use dh_php5 and dh_phppear (Closes: #717214)
* Imported Upstream version 3.1.0~rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
 
3
 
/*
4
 
        A simple example demonstrate thumbnail creation.
5
 
*/ 
6
 
 
7
 
/* Create the Imagick object */
8
 
$im = new Imagick();
9
 
 
10
 
/* Read the image file */
11
 
$im->readImage( '/tmp/test.png' );
12
 
 
13
 
/* Thumbnail the image ( width 100, preserve dimensions ) */
14
 
$im->thumbnailImage( 100, null );
15
 
 
16
 
/* Write the thumbail to disk */
17
 
$im->writeImage( '/tmp/th_test.png' );
18
 
 
19
 
/* Free resources associated to the Imagick object */
20
 
$im->destroy();
21
 
 
22
 
?>
 
 
b'\\ No newline at end of file'