Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed grammar error #182

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
```
Expand All @@ -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();
```
```
2 changes: 1 addition & 1 deletion docs/imageprocessing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down