import { readFile, remove } from 'fs-extra'
import { logger } from './logger'
import { readFile, remove } from 'fs-extra'
import { logger } from './logger'
- if (physicalFile.path === destination) {
- throw new Error('Sharp needs an input path different that the output path.')
+ if (path === destination) {
+ throw new Error('Jimp needs an input path different that the output path.')