Skip to content

Instantly share code, notes, and snippets.

View paulathevalley's full-sized avatar
💜

Paula Lavalle paulathevalley

💜
View GitHub Profile
// 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
{"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
@paulathevalley
paulathevalley / appleDeviceResolutions.md
Last active August 29, 2015 14:23
All resolution sizes for Apple devices

Apple Device Resolutions

iPhone

  • 480 x 320
  • 960 x 640 (Retina)
  • 1136 x 640 (Retina)
  • 1334 x 750 (Retina)
  • 1920 x 1080 (Retina)

iPad

@paulathevalley
paulathevalley / keybase.md
Last active October 12, 2017 02:20
keybase

Keybase proof

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: