Skip to content

Commit c58dc32

Browse files
Dmitry Pokidovgitbook-bot
Dmitry Pokidov
authored andcommitted
GitBook: [master] 39 pages and 22 assets modified
1 parent 974e2b0 commit c58dc32

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1280
-0
lines changed

.gitbook/assets/add-domain-1.png

21.8 KB
Loading

.gitbook/assets/add-domain-2.png

17.5 KB
Loading

.gitbook/assets/add_domain_form.png

7.77 KB
Loading

.gitbook/assets/api-keys-list.png

7.35 KB
Loading

.gitbook/assets/api_keys.png

45.4 KB
Loading
31.9 KB
Loading
21.3 KB
Loading

.gitbook/assets/code-snippet-html.png

26.5 KB
Loading

.gitbook/assets/domains-list.png

9.86 KB
Loading

.gitbook/assets/generate_new_keys.png

19.7 KB
Loading

.gitbook/assets/invalidate_cash.png

13.1 KB
Loading

.gitbook/assets/main-image.png

206 KB
Loading

.gitbook/assets/many_domains.png

13.2 KB
Loading
Loading
622 KB
Loading

.gitbook/assets/pixboost-concept.jpg

45.7 KB
Loading

.gitbook/assets/preview-mobile.png

135 KB
Loading
Loading

.gitbook/assets/settings.png

31.3 KB
Loading

.gitbook/assets/url-start-image.png

13.7 KB
Loading

.gitbook/assets/url_samples.png

17.6 KB
Loading

.gitbook/assets/welcome.png

24.7 KB
Loading

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Overview
2+
3+
[**Pixboost**](https://pixboost.com/) ****is a Cloud Service that resizes and optimises Raster Images \(e.g. \*.jpg, \*.png, etc\) for file size reduction and decreased Load Times. Once an image has been processed, it's file is cached on CDN, increasing the speed at which images can be retrieved on subsequent requests.
4+
5+
The service can also be used to resize and crop images, which makes generating responsive images that respect the device and screen size on which they are being displayed simple to achieve. Using the service requires modifications to the image URL.
6+
7+
Below is the diagram on Pixboost brief architecture.
8+
9+
![](.gitbook/assets/pixboost-concept.jpg)
10+
11+
Below is a short video that shows image transformations in action:![](.gitbook/assets/pixboost-api-overview.gif)
12+
13+
To start working with the service you would only need to register and [add you image source](setup/adding-image-source.md).
14+
15+
If you have any questions/feedback please do not hesitate to reach us on **[email protected]**. We also have great [FAQ](https://pixboost.com/faq.html) where you might find answers to your questions.
16+
17+
Please, consider the following sources for more information:
18+
19+
## [Quick Start Guide](https://help.pixboost.com/quick-start-10-minutes-or-less.html)
20+
21+
## [Tools and setup](https://help.pixboost.com/setup/)
22+
23+
## [Supported Image Formats](setup/supported-formats.md)
24+
25+
## [URL-based Integration](https://help.pixboost.com/api/)
26+
27+
## [Pixboost.js Integration](web-dom/)
28+
29+
## [ReactJS Integration](react/)
30+
31+
## [API Sandbox](https://pixboost.com/docs/api/)
32+
33+
## [Questions and Answers](https://help.pixboost.com/questions-and-answers.html)
34+

SUMMARY.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Table of contents
2+
3+
* [Overview](README.md)
4+
* [Quick Start \(10 minutes or less\)](quick-start-10-minutes-or-less.md)
5+
* [Billing and Prices](billing.md)
6+
* [Tools and Setup](setup/README.md)
7+
* [Adding Image Source](setup/adding-image-source.md)
8+
* [Managing API Keys](setup/manage-api-keys.md)
9+
* [Snippet Generator](setup/snippet-generator.md)
10+
* [Custom Domain Name](setup/custom-domain.md)
11+
* [Cache Invalidation](setup/cash-invalidation.md)
12+
* [Supported Image Formats](setup/supported-formats.md)
13+
* [HTTP/2 Support](setup/http2-support.md)
14+
* [CDN Support](setup/cdn-support.md)
15+
* [API. URL-based integration](api/README.md)
16+
* [Resize](api/resize.md)
17+
* [Fit](api/fit.md)
18+
* [Optimise](api/optimise.md)
19+
* [As is](api/as-is.md)
20+
* [Cache Invalidation](api/cache-invalidation.md)
21+
* [API. JavaScript Integration](web-dom/README.md)
22+
* [Installation](web-dom/install.md)
23+
* [Responsive Images](web-dom/responsive-images.md)
24+
* [Not responsive images](web-dom/not-responsive-images.md)
25+
* [CSS Background images](web-dom/css-background-images.md)
26+
* [Lazy Loading](web-dom/lazy-loading.md)
27+
* [Replacing on Document Load](web-dom/replacing-on-document-load.md)
28+
* [Custom Domain Name](web-dom/custom-domain-name.md)
29+
* [Reloading](web-dom/reloading.md)
30+
* [Disabling](web-dom/disabling.md)
31+
* [Browsers Support](web-dom/browsers-support.md)
32+
* [API. ReactJS integration](react/README.md)
33+
* [Installation](react/install.md)
34+
* [Responsive images](react/responsive-images.md)
35+
* [Non-responsive images](react/non-responsive-images.md)
36+
* [Configuration Object](react/configuration-object.md)
37+
* [Browsers Support](react/browsers-support.md)
38+
* [Build](react/build.md)
39+
* [Performance Testing](proper-performance-testing.md)
40+
* [Open Source Version](open-source-version.md)
41+

api/README.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# API. URL-based integration
2+
3+
To make integration easier we came up with URL-based integration. Which means all you need to do is to setup image URL for tags **<img>** and **<picture>** to start using [Pixboost](https://pixboost.com/).
4+
5+
## URL pattern for API call
6+
7+
`https://pixboost.com/api/2/img/[IMAGE_URL]/[OPERATION]?[OPERATION_PARAMS]&auth=[API_KEY]`
8+
9+
| Item | Description |
10+
| :--- | :--- |
11+
| **\[IMAGE\_URL\]** | The URL of the original image you would like to process through Pixboost. |
12+
| **\[OPERATION\]** | Pixboost function call |
13+
| **\[OPERATION\_PARAMS\]** | Pixboost parameters for a function call you are using |
14+
| **\[API\_KEY\]** | A unique key created by Pixboost for security purposes |
15+
16+
### Example using tag **<img>**
17+
18+
Before:
19+
20+
`<img src="http://www.midday.coffee/assets/cup.jpeg" alt="Midday Coffee">`
21+
22+
After:
23+
24+
`<img src="http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/resize?size=200x100&auth=MTg4MjMxMzM3MA__" alt="Midday Coffee">`
25+
26+
### Example using tag **&lt;picture&gt;**
27+
28+
Before:
29+
30+
```text
31+
<picture>
32+
```
33+
34+
```markup
35+
<source srcset="http://www.midday.coffee/assets/cup.jpeg"
36+
media="(min-width: 769px)">
37+
<source srcset="http://www.midday.coffee/assets/cup.jpeg"
38+
media="(max-width: 768px)">
39+
<source srcset="http://www.midday.coffee/assets/cup.jpeg"
40+
media="(max-width: 576px)">
41+
<img src="http://www.midday.coffee/assets/cup.jpeg">
42+
</picture>
43+
```
44+
45+
After:
46+
47+
```markup
48+
<picture>
49+
<source srcset="https://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/optimise?auth=API_KEY"
50+
media="(min-width: 769px)">
51+
<source srcset="https://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/resize?size=300&auth=API_KEY"
52+
media="(max-width: 768px)">
53+
<source srcset="https://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/fit?size=100x100&auth=API_KEY"
54+
media="(max-width: 576px)">
55+
<img src="http://www.midday.coffee/assets/cup.jpeg">
56+
</picture>
57+
```
58+
59+
We support main resizing transformations that you would need for your website.
60+
61+
![](../.gitbook/assets/operations-diagram-aboutpage.png)
62+
63+
Read more on operations:
64+
65+
## [Resize](resize.md)
66+
67+
## [Fit](fit.md)
68+
69+
## [Optimise](optimise.md)
70+
71+
## [As is](as-is.md)
72+
73+
## [Cache Invalidation](cache-invalidation.md)
74+
75+
You can explore API sandbox here: [https://pixboost.com/docs/api/](https://pixboost.com/docs/api/)
76+

api/as-is.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# As is
2+
3+
API endpoint - `/api/2/img/[IMAGE-URL]/asis?`
4+
5+
## Description
6+
7+
**Asis** - does not perform any transformations. Respond with the original image without any modifications. Would be useful to leverage CDN.
8+
9+
## Parameters
10+
11+
No parameters required.
12+
13+
### Sandbox
14+
15+
| Original Image | Image after Pixboost transformation |
16+
| :--- | :--- |
17+
| [www.midday.coffee/assets/cup.jpeg](https://github.com/dmitrypokidov/pixboost/tree/c6f1ddd25e878d9100600d2df063f6910794593f/www.midday.coffee/assets/cup.jpeg) | [http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/asis?&auth=MTg4MjMxMzM3MA\_\_](http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/asis?&auth=MTg4MjMxMzM3MA__) |
18+

api/cache-invalidation.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Cache Invalidation
2+
3+
API endpoint - `DELETE /api/2/img/[IMAGE-URL]?auth=[API_SECRET]`
4+
5+
## Description
6+
7+
This a service endpoint that allows you to invalidate images cached on CDN.
8+
9+
We recommend that you use invalidation sparingly and only as a last resort. For example, invalidation is useful when you must remove content for legal reasons or because of an accidental upload. Otherwise, we recommend that you use versioning whenever possible or wait until the content expires normally.
10+
11+
Calling example using curl:
12+
13+
```text
14+
curl -X DELETE 'https://pixboost.com/api/2/img/http://www.midday.coffee/banner.jpeg?auth=ABCDEF'
15+
```
16+
17+
## Limitations
18+
19+
Invalidation is intended for use in exceptional circumstances, not as part of your normal workflow. Importantly, invalidations don't affect cached copies in web browser caches or caches operated by third-party Internet service providers.
20+
21+
Invalidations are rate limited. You can submit at most one invalidation per minute.
22+
23+
## Parameters
24+
25+
API\_SECRET - secret key. This secret key is not public and _should not_ be shared.
26+

api/fit.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Fit
2+
3+
API endpoint - `/api/2/img/[IMAGE-URL]/fit?size=[NEW-SIZE]`
4+
5+
## Description
6+
7+
**Fit** - resizes image, crops it to the size and optimises it using lossy compression. If you need to resize image with preserved aspect ratio then use [resize operation](https://help.pixboost.com/api/resize.html).
8+
9+
## Parameters
10+
11+
**size** - new size \(in pixels\) of the image in the format `WIDTHxHEIGHT`.
12+
13+
You have to specify both dimensions \[width\] and \[height\].
14+
15+
### Example
16+
17+
size =`200x100 (scaling by the smaller side which is height, cropping sides, center positioning)`
18+
19+
| Options | Original | After |
20+
| :--- | :---: | :---: |
21+
| size=200x100 | ![](http://www.midday.coffee/assets/cup.jpeg) | ![](http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/fit?size=200x100&auth=MTg4MjMxMzM3MA__) |
22+
23+
### Sandbox
24+
25+
| Original Image | Image after Pixboost transformation |
26+
| :--- | :--- |
27+
| [www.midday.coffee/assets/cup.jpeg](https://github.com/dmitrypokidov/pixboost/tree/c6f1ddd25e878d9100600d2df063f6910794593f/www.midday.coffee/assets/cup.jpeg) | [http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/fit?size=200x100&auth=MTg4MjMxMzM3MA\_](http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/fit?size=200x100&auth=MTg4MjMxMzM3MA__)\_ |
28+

api/optimise.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Optimise
2+
3+
API endpoint - `/api/2/img/[IMAGE-URL]/optimise?`
4+
5+
## Description
6+
7+
**Optimise** - optimises images using lossy compression automatically.
8+
9+
## Parameters
10+
11+
No parameters required.
12+
13+
### Example
14+
15+
| Options | Original | After |
16+
| :--- | :---: | :---: |
17+
| at least 20% lighter | ![](http://www.midday.coffee/assets/cup.jpeg) | ![](http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/optimise?&auth=MTg4MjMxMzM3MA__) |
18+
19+
### Sandbox
20+
21+
| Original Image | Image after Pixboost transformation |
22+
| :--- | :--- |
23+
| [www.midday.coffee/assets/cup.jpeg](https://github.com/dmitrypokidov/pixboost/tree/c6f1ddd25e878d9100600d2df063f6910794593f/www.midday.coffee/assets/cup.jpeg) | [http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/optimise?&auth=MTg4MjMxMzM3MA\_\_](http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/optimise?&auth=MTg4MjMxMzM3MA__) |
24+

api/resize.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Resize
2+
3+
API endpoint - `/api/2/img/[IMAGE-URL]/resize?size=[NEW-SIZE]`
4+
5+
## Description
6+
7+
**Resize** - resizes image with preserving aspect ratio and optimizes it using lossy compression. If you need the exact size then use fit operation.
8+
9+
## Parameters
10+
11+
**size** - new size \(in pixels\) of the image in the format `WIDTH and xHEIGHT`.
12+
13+
You can specify only one dimension and the second will be calculated according to aspect ratio of the image.
14+
15+
### Examples
16+
17+
| Options | Original | After |
18+
| :--- | :---: | :---: |
19+
| size=200 | ![](http://www.midday.coffee/assets/cup.jpeg) | ![](http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/resize?size=200&auth=MTg4MjMxMzM3MA__) |
20+
| size=x80 | ![](http://www.midday.coffee/assets/cup.jpeg) | ![](http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/resize?size=x80&auth=MTg4MjMxMzM3MA__) |
21+
22+
### Sandbox
23+
24+
Please, feel free to test this in your browser to see how it works.
25+
26+
| Original Image | Image after Pixboost transformation |
27+
| :--- | :--- |
28+
| [www.midday.coffee/assets/cup.jpeg](https://github.com/dmitrypokidov/pixboost/tree/c6f1ddd25e878d9100600d2df063f6910794593f/www.midday.coffee/assets/cup.jpeg) | [http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/resize?size=200x100&auth=MTg4MjMxMzM3MA\_\_](http://pixboost.com/api/2/img/http://www.midday.coffee/assets/cup.jpeg/resize?size=200x100&auth=MTg4MjMxMzM3MA__) |
29+

billing.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Billing and Prices
2+
3+
We bill only for the bandwidth. So, you pay only for what your website uses and nothing more. It’s as simple as abc.
4+
5+
* Imagine, you have a logo.png image which weights 1MB on your website.
6+
* We compress it to 600KB.
7+
* Let’s pretend that 100 users saw it.
8+
* So, the calculation would be: 600KB \* 100 views = 60 MB of billed bandwidth.
9+
10+
![](.gitbook/assets/bandwidth-example-diagram.jpg)
11+
12+
| FREE | S | M | L | ENTERPRISE | Open Source |
13+
| :--- | :--- | :--- | :--- | :--- | :--- |
14+
| $0 | $5/month | $25/month | $80/month | Custom pricing | $0 |
15+
| 2GB | 10GB | 50GB | 200GB | Unlimited bandwidth | Not Supported |
16+
| Unlimited Image Processing | Unlimited Image Processing | Unlimited Image Processing | Unlimited Image Processing | Unlimited Image Processing | Full image transformation and optimization functionality |
17+
| Free up to 2 GB | Billed Monthly | Billed Monthly | Billed Monthly | Billed Monthly / Annualy | Free |
18+
| CDN | CDN | CDN | CDN | CDN | Not Supported |
19+
| Custom Domain Name Not Supported | Free Custom Domain Name Support | Free Custom Domain Name Support | Free Custom Domain Name Support | Free Custom Domain Name Support | Not Supported |
20+
| SLA Not Supported | SLA | SLA | SLA | SLA | SLA Not Supported |
21+
| Consulting Services available | Free Integration Support | Free Integration Support | Free Integration Support | Free Integration Support | Consulting Services available |
22+
| 1-3 Days Support | 5-8 Hours Support | 3-5 Hours Support | 1-3 Hours support | 24/7 Support and Monitoring | By using Github issues |
23+
24+
If you are looking into **more than 200 GB per month**, please contact us directly because you are eligible for a special offer:
25+
26+
* Integration Support
27+
* Discounted prices depending on your traffic volume
28+
* 24/7 Support
29+
30+
## Limitations
31+
32+
Maximum image file size - 10 MB
33+
34+
10 API Keys limit\*
35+
36+
10 Image Sources \(domains\) limit\*
37+
38+
\*If you need more API Keys of Image Sources please contact us directly and we will add more for your account.
39+

open-source-version.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Open Source Version
2+
3+
Pixboost image manipulation service sources are accessible for public on ****[**github**](https://github.com/dooman87/transformimgs). We believe that **open source** is the most efficient model of software development.
4+
5+
Also, it allows our customers to deploy service into their own data centres.
6+
7+
We are always happy to provide consulting services to customize the solution for your needs.
8+

0 commit comments

Comments
 (0)