multer-sharp-s3-opt
Version:
A plugin multer to transform image and upload to AWS S3
41 lines • 1.43 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function getSharpOptions(options) {
return {
resize: options.resize,
composite: options.composite,
modulate: options.modulate,
toFormat: options.toFormat,
extract: options.extract,
trim: options.trim,
flatten: options.flatten,
extend: options.extend,
negate: options.negate,
rotate: options.rotate,
flip: options.flip,
flop: options.flop,
blur: options.blur,
sharpen: options.sharpen,
gamma: options.gamma,
grayscale: options.grayscale,
greyscale: options.greyscale,
normalize: options.normalize,
normalise: options.normalise,
convolve: options.convolve,
threshold: options.threshold,
toColourspace: options.toColourspace,
toColorspace: options.toColorspace,
withMetadata: options.withMetadata,
linear: options.linear,
median: options.median,
tint: options.tint,
removeAlpha: options.removeAlpha,
bandbool: options.bandbool,
boolean: options.boolean,
joinChannel: options.joinChannel,
extractChannel: options.extractChannel,
ensureAlpha: options.ensureAlpha,
};
}
exports.default = getSharpOptions;
//# sourceMappingURL=get-sharp-options.js.map