Ghost/ghost/image-transform
Kevin Ansfield b02d82fb24 Added canTransformFiles() method
refs https://github.com/TryGhost/Ghost/issues/11944

- it's useful for consuming applications to know if images can be transformed outside of actually performing the transform (eg, when outputting "resized" image URLs)
- added `canTransformFiles()` that returns a boolean for whether or not `sharp` is installed
2020-07-02 18:00:12 +01:00
..
lib Added canTransformFiles() method 2020-07-02 18:00:12 +01:00
test Added canTransformFiles() method 2020-07-02 18:00:12 +01:00
.eslintrc.js Prepared new image-transform package 2020-03-25 12:12:17 +00:00
index.js Updated paths & tests to work in new pkg structure 2020-03-25 14:48:41 +00:00
LICENSE Prepared new image-transform package 2020-03-25 12:12:17 +00:00
package.json Published new versions 2020-05-26 18:19:01 +02: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.