diff --git a/docs/examples.md b/docs/examples.md index 3e9bfb5..ee3b8d0 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -172,7 +172,7 @@ $photo->foo->contentType(); ``` #### Deleting-Uploads -Unless you've set the 'keep_old_files' flag on the attachment to true, deleting a record will automatically remove all uploaded files, across all attachments, across all styles, for the a given model/record: +Unless you've set the 'keep_old_files' flag on the attachment to true, deleting a record will automatically remove all uploaded files, across all attachments, across all styles, for the given model/record: ```php $photo->delete(); ``` @@ -198,4 +198,4 @@ You may also reprocess uploaded images on an attachment by calling the reprocess ```php // Programmatically reprocess an attachment's uploaded images: $photo->foo->reprocess(); -``` \ No newline at end of file +``` diff --git a/docs/imageprocessing.md b/docs/imageprocessing.md index cc0dd4d..1614a97 100644 --- a/docs/imageprocessing.md +++ b/docs/imageprocessing.md @@ -4,7 +4,7 @@ Stapler makes use of the [imagine image](https://packagist.org/packages/imagine/ * **width**: A style that defines a width only (landscape). Height will be automagically selected to preserve aspect ratio. This works well for resizing images for display on mobile devices, etc. * **xheight**: A style that defines a heigh only (portrait). Width automagically selected to preserve aspect ratio. * **widthxheight#**: Resize then crop. -* **widthxheight!**: Resize by exacty width and height. Width and height emphatically given, original aspect ratio will be ignored. +* **widthxheight!**: Resize by exact width and height. Width and height emphatically given, original aspect ratio will be ignored. * **widthxheight**: Auto determine both width and height when resizing. This will resize as close as possible to the given dimensions while still preserving the original aspect ratio. To create styles for an attachment, simply define them (you may use any style name you like: foo, bar, baz, etc) inside the attachment's styles array using a combination of the directives defined above: