Ghost/ghost/image-transform
Nazar Gargol 29991c6718 🐛 Fixed image optimisation for input image being smaller than optimized one
closes #10144

- When the input image is well optimized and has smaller byte size than the processed one it's still being used
- Bumped sharp version to have access to `size` property
2020-03-25 14:48:41 +00:00
..
lib 🐛 Fixed image optimisation for input image being smaller than optimized one 2020-03-25 14:48:41 +00:00
test 🐛 Fixed image optimisation for input image being smaller than optimized one 2020-03-25 14:48:41 +00:00
.eslintrc.js Prepared new image-transform package 2020-03-25 12:12:17 +00:00
index.js Prepared new image-transform package 2020-03-25 12:12:17 +00:00
LICENSE Prepared new image-transform package 2020-03-25 12:12:17 +00:00
package.json Prepared new image-transform package 2020-03-25 12:12:17 +00:00
README.md Prepared new image-transform package 2020-03-25 12:12:17 +00:00

Image Transform

Install

npm install @tryghost/image-transform --save

or

yarn add @tryghost/image-transform

Usage

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Copyright & License

Copyright (c) 2020 Ghost Foundation - Released under the MIT license.