Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp authored Jan 16, 2024
1 parent eb8b28d commit 4cc8912
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ make sure it keeps being supported and improved, I'd really appreciate your dona

[Donate now via GitHub Sponsors](https://github.com/sponsors/simonhamp)

If you're using The OG, I'd love to see your creations! Please send me a tweet/toot (@simonhamp, @simonhamp@phpc.social)
with some links so I can see The OG in the wild.
If you're using The OG, I'd love to see your creations! Please send me a tweet/toot
([@simonhamp](https://twitter.com/simonhamp),
[@simonhamp@phpc.social](https://phpc.social/@simonhamp))
with some links so I can see how youre using The OG in the wild.

Thank you 🙏

Expand Down Expand Up @@ -92,6 +94,22 @@ $service->putObject([
This will send the raw binary data directly to the external service without needing to write the image to a file on the
local disk first.

#### Image formats

By default, The OG will store encode images in the PNG format.

If tou wish to use a different format, however, you can! Simply
pass an instance of the relevant
[`intervention/image` encoder](https://github.com/Intervention/image/tree/develop/src/Encoders)
to the `save()` or `toString()` methods:


```php
use Intervention\Image\Encoders\WebpEncoder;

$image->toString(encoder: new WebpEncoder);
```

### Colors

Throughout The OG, colors can be expressed as hex codes, rgba, or HTML named colors.
Expand Down

0 comments on commit 4cc8912

Please sign in to comment.