- 480 x 320
- 960 x 640 (Retina)
- 1136 x 640 (Retina)
- 1334 x 750 (Retina)
- 1920 x 1080 (Retina)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// npm install sharp | |
const sharp = require('sharp') | |
/* | |
usage | |
```shell | |
node node-optimize-images.js ./src/assets/ image-name.jpg | |
``` | |
expected result: | |
./src/assets/image-name_2.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"v":"4.6.3","fr":30,"ip":0,"op":900,"w":800,"h":800,"nm":"Dark","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"light","ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[400,400,0]},"a":{"a":0,"k":[0,0,0]},"s":{"a":0,"k":[218.378,218.378,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.333,"y":0},"n":"0p833_0p833_0p333_0","t":1,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-34.272,152.809],[125.248,-12.738],[-33.766,39.059]],"c":true}],"e":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-31.5,172],[121,-2],[-13.75,29]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"n":"0p833_0p833_0p167_0p167","t":142,"s":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-31.5,172],[121,-2],[-13.75,29]],"c":true}],"e":[{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-31.5,172],[121,-2],[-13.75,29]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.333,"y":0},"n":"0p833_0p833_0p33 |
I hereby claim:
- I am paulathevalley on github.
- I am paulathevalley (https://keybase.io/paulathevalley) on keybase.
- I have a public key ASCES6evzvOJNutoVbgbIhIj_ihB3KH-8cYC0G6JgPrYOQo
To claim this, I am signing this object: