Commit ac7be6d3 authored by Jarrod's avatar Jarrod 💬

missing dep

parent 03c81313
Pipeline #121 failed with stages
in 34 seconds
......@@ -61,7 +61,7 @@ module.exports = {
},
fn: function(inputs, exits) {
// var im = require('imagickal');
const fs = require('fs');
const sharp = require('sharp');
if (inputs.source === inputs.dest) {
......@@ -74,7 +74,7 @@ module.exports = {
// Check if the source file is readable.
fs.access(inputs.source, fs.constants.R_OK, (err) => {
if (err) { throw 'unreadable'; }
if (err) { return exits.unreadable('Unable to read source file'); }
// Basically just make a clone of the source in the destination minus metadata
sharp(inputs.source)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment