Skip to content

Commit

Permalink
Added information about the "auto_handle_exif_orientation" property
Browse files Browse the repository at this point in the history
  • Loading branch information
stefangabos committed May 16, 2016
1 parent 44f9e7b commit cca19fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -37,6 +37,8 @@ The cool thing about it is that it can re-size images to exact given width and h

PHP 5+, bundled GD 2.0.28+

--enable-exif (or, for Windows, php_mbstring.dll and php_exif.dll extensions enabled) for auto-fixing image rotation so you always see images correctly

## How to use

```php
Expand All @@ -48,6 +50,11 @@ PHP 5+, bundled GD 2.0.28+
// create a new instance of the class
$image = new Zebra_Image();

// if you handle image uploads from users and you have enabled exif-support with --enable-exif
// (or, on a Windows machine you have enabled php_mbstring.dll and php_exif.dll in php.ini)
// set this property to TRUE in order to fix rotation so you always see images in correct position
$image->auto_handle_exif_orientation = false;

// indicate a source image (a GIF, PNG or JPEG file)
$image->source_path = 'path/to/image.png';

Expand Down

0 comments on commit cca19fe

Please sign in to comment.