@@ -49,12 +49,13 @@ Additional thumbnail generation types are available using the `crop` and `fit` o
4949'portrait' => [
5050 'w' => 150,
5151 'h' => 300,
52- 'crop' => true
52+ 'crop' => true,
53+ 'orientate' => true
5354]
5455```
5556
5657#### Fit
57- > Combine cropping and resizing to format image in a smart way. The method will find the best fitting aspect ratio of
58+ > Combine cropping and resizing to format image in a smart way. The method will find the best fitting aspect ratio of
5859> your given width and height on the current image automatically, cut it out and resize it to the given dimension.
5960 See [ Intervention Fit method] ( http://image.intervention.io/api/fit )
6061
@@ -63,6 +64,10 @@ See [Intervention Fit method](http://image.intervention.io/api/fit)
6364 By default, will be the centre of the image.
6465See [ Intervention Crop method] ( http://image.intervention.io/api/crop )
6566
67+ #### Orientate
68+ > Reads the EXIF image profile setting 'Orientation' and performs a rotation on the image to display the image correctly.
69+ See [ Intervention Orientate method] ( http://image.intervention.io/api/orientate ) for PHP installation requirements.
70+
6671## Template
6772In order to upload a file to your application you will need to add the form fields to your view.
6873``` php
@@ -105,7 +110,7 @@ If you want to replace the creation of thumbnails you can specify your own class
105110EG, ` 'transformClass' => App\Lib\Proffer\WatermarkThumbnail::class ` .
106111
107112## Associating many uploads to a parent
108- If you need to associate many uploads to a single parent entity, the same process as above applies, but you should attach
113+ If you need to associate many uploads to a single parent entity, the same process as above applies, but you should attach
109114and configure the behaviour on the association.
110115
111116Let's look at an example.
@@ -128,8 +133,8 @@ $this->addBehavior('Proffer.Proffer', [
128133Now, when you save a post, with associated Uploads data, each upload will be converted to an entity, and saved.
129134
130135### Uploading multiple files
131- So now you've configured the behaviour and created the table associations, you'll need to get the request data. If you're
132- using HTML5, then you can use the file input, with the ` multiple ` flag, to allow for multiple file upload fields. Older
136+ So now you've configured the behaviour and created the table associations, you'll need to get the request data. If you're
137+ using HTML5, then you can use the file input, with the ` multiple ` flag, to allow for multiple file upload fields. Older
133138browsers will see this as a single file upload field instead of multiple.
134139
135140:warning : Note that the field name is an array!
0 commit comments