diff --git a/README.md b/README.md
index af7772a..a07f963 100644
--- a/README.md
+++ b/README.md
@@ -1,20 +1,27 @@
-# 🖼 IPX
+[]()
+[]()
+[]()
-High performance, secure and easy to use image proxy based on [Sharp](https://github.com/lovell/sharp) and [libvips](https://github.com/jcupitt/libvips).
+
+

+
-- Fast and minimal as possible.
-- Configurable operations.
-- Built-in secure cache with human readable entries and resistant against duplicates.
-- Remote agnostic cache and input adapters.
-- Smart and auto cache cleaning.
-- Twelve factor friendly.
-- Client libraries for URL generation.
+> High performance, secure and easy to use image proxy based on [Sharp](https://github.com/lovell/sharp) and [libvips](https://github.com/jcupitt/libvips).
-## Clients
+✅ Fast and minimal as possible.
+✅ Easy deployment.
+✅ Configurable operations.
+✅ Built-in secure cache with human readable entries and resistant against duplicates.
+✅ Remote agnostic cache and input adapters.
+✅ Smart and auto cache cleaning.
+✅ Twelve factor friendly.
+✅ Client libraries for URL generation.
-- [js client for NPM and Browser](./client/js/README.md)
+Clients
-## API
+- [JS Client](./client/js/README.md) (for Node.js and Browser)
+
+API
**`/{format}/{operations}/{src}`**
@@ -38,7 +45,7 @@ Possible values for format: `jpeg`,`webp` or `png`.
`http://cdn.example.com/jpg/s_200_300,embed/avatars/buffalo.png`
-## Docker deployment
+Docker deployment
Latest docker image is automatically built under [pooya/ipx](https://hub.docker.com/r/pooya/ipx).
@@ -65,7 +72,7 @@ Using docker-compose:
- 3000:3000
```
-## Operations
+Operations
Operation | Arguments | Example | Description
-------------|-----------------------|-------------|---------------------------------------------------------
@@ -76,7 +83,7 @@ Operation | Arguments | Example | Description
`max` | - | max | Preserving aspect ratio, resize the image to be as large as possible while ensuring its dimensions are less than or equal to the `width` and `height` specified.
`min` | - | min | Preserving aspect ratio, resize the image to be as small as possible while ensuring its dimensions are greater than or equal to the width and height specified.
-## Config
+Config
Config can be customized using `IPX_*` environment variables or `config/local.js` file. Here are defaults:
@@ -95,6 +102,6 @@ Config can be customized using `IPX_*` environment variables or `config/local.js
}
```
-## License
+License
MIT - Pooya Parsa
diff --git a/client/js/README.md b/client/js/README.md
index 48d36f1..ecfd0de 100644
--- a/client/js/README.md
+++ b/client/js/README.md
@@ -1,4 +1,6 @@
-## IPX JS Client
+## IPX client
+
+> See [IPX](https://github.com/pi0/ipx) for more information.
Install package:
@@ -18,14 +20,13 @@ const { img } = require('ipx-client')
`img()` is a factory function to configure base options:
```js
+// getImage: (path, opts?, format?) => URL
const getImage = img({
baseURL = 'https://cdn.example.com',
basePath = 'uploads',
- opts = [], // default opts
+ opts = [], // Default opts
format = 'webp'
})
-// getImage: (path, opts?, format?) => URL
-
getImage('posts/ipx.jpg', { w: 200 }) // => https://cdn.example.com/webp/w_200/uploads/posts/ipx.jpg
```
diff --git a/logo.png b/logo.png
new file mode 100644
index 0000000000000000000000000000000000000000..1bcde31c690b0bd67efe3c992eccdca972d832c6
GIT binary patch
literal 6374
zcme7R@N?(olHy`uVBq!ia0y~yU^oH79Bd2>3~M9S&0}C-U@3O;4B_D5;Hcq9>0n@B
z;4JWnEM{Qfy$-^RP8zc-7#J8NOI#yLg7ec#$`gxH8OqDc^)mCai<1)zQuXqS(r3T3
zkz!zwNcMDb45^s&_HKQR$k(~YKVC04Q_)y(DP(1<_3GTI5eGjnF}r!!8{+&rRMT~4_$d4
zx#@`3J%433WkyN0)}ZkHC2?~vX)Q7_Zn)f-+-?^D9|K`wv#j#}zcUNz2Z<
zv2bdYQ|8}_0}sO8&DPeQek$+y#F6RIg38+B2Q9&TbJlL1w_IdCtDVIe@2#y|>t@MS
zvnBj*dv`owb^*|oLy^<9fU
z_)yPKW$CpwGsJ#7eJgmcted^%+C`h)o87hF8S2#j{&D`^_n>*D9X6g0IqPm-Dp_>x
zSF~55WP!`Pt8cus{eB*N`K+vAU3=8404u%~PQRB2`m+RF@0or3TYT#^)i!q~rkL%i
z=S0>rpWc#WC!n#$tn_f#%Z;;t{fjTPwfS$~*e`y|U7CBx@
zpT{%fW4q(oOO*}wUHE14>$`B@t?m`#qZ4XOLo56BKq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