Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
chore(example): Add export example
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusCemes committed Mar 23, 2019
1 parent 7a0aa19 commit 5752c71
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions example/EXAMPLE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# An example Responsive Image Builder export

![The original Unsplash image](a-pretty-background.jpg)

<p align="center"><sub>
The original picture from Unsplash is 4MB. It measures 6000x4000.
</sub></p>
<br>

The export contains the pictures obtained with RIB using the default configuration. The standard-sized WebP image is only 134KB! That's roughly a 25% reduction in size and bandwidth compared to its identical JPEG twin.

This is the kind of reduction that you can expect from WebP while maintaining the same or slightly superior quality. By playing with the encoding settings, you could drive those file-sizes down even further.

See for your self!

<br>

![The resized JPEG image](export/a-pretty-background_normal.jpg)

<p align="center"><sub>
A decent 1620x1080 JPEG export that is 180KB
</sub></p>
<br>

![The resized WebP image](export/a-pretty-background_normal.webp)

<p align="center"><sub>
A superior 1620x1080 JPEG WebP that is 134KB. Can you tell the difference?
</sub></p>
<br>

Photo by Nathaniel Foong on [Unsplash](https://unsplash.com/photos/OVfKK18xzHA)
Binary file added example/a-pretty-background.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/export/a-pretty-background_large.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/export/a-pretty-background_large.webp
Binary file not shown.
Binary file added example/export/a-pretty-background_normal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/export/a-pretty-background_normal.webp
Binary file not shown.
Binary file added example/export/a-pretty-background_small.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/export/a-pretty-background_small.webp
Binary file not shown.
Binary file added example/export/a-pretty-background_thumbnail.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added example/export/a-pretty-background_thumbnail.webp
Binary file not shown.
1 change: 1 addition & 0 deletions example/export/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"exports":[{"name":"a-pretty-background","fullName":"a-pretty-background","extension":".jpg","webp":true,"sizes":[{"name":"thumbnail","width":16,"height":11},{"name":"small","width":1080,"height":720},{"name":"normal","width":1620,"height":1080,"default":true},{"name":"large","width":3240,"height":2160}]}]}

0 comments on commit 5752c71

Please sign in to comment.