Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Changelog

## 6.0.0
## 6.0.0-dev

- Internal refactor from CommonJS to ESM.
- Updated `sharp` dependency to 0.35.3.
- Updated depedencies.
- Updated dependencies.
- Requires Node.js 20.10.
- Removed `jpg` output format alias; use `jpeg` instead.

## 5.3.0 (August 13, 2026)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Output Options
--bigtiff Use BigTIFF variant [boolean]
-c, --compressionLevel zlib compression level [number] [default: 6]
-f, --format Force output to a given format
[choices: "avif", "gif", "heif", "jpeg", "jpg", "png", "tiff", "webp"] [default: input]
[choices: "avif", "gif", "heif", "jpeg", "png", "tiff", "webp"] [default: input]
--keepDuplicateFrames Keep duplicate frames in the output instead of combining them
[boolean]
-m, --metadata, --withMetadata Include all metadata (EXIF, XMP, IPTC) from the input image in the
Expand Down
6 changes: 4 additions & 2 deletions cmd/channel-manipulation/bandbool.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

// Local modules.
import constants from "../../lib/constants.js";
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
Expand All @@ -51,7 +50,10 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push(["bandbool", (sharp) => sharp.bandbool(args.operator)]);
return args["#queue"].push([
"bandbool",
(sharp) => sharp.bandbool(args.operator),
]);
};

// Exports.
Expand Down
8 changes: 4 additions & 4 deletions cmd/channel-manipulation/ensure-alpha.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

// @see https://sharp.pixelplumbing.com/api-channel#ensurealpha

// Local modules.
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
alpha: {
Expand Down Expand Up @@ -55,7 +52,10 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push(["ensureAlpha", (sharp) => sharp.ensureAlpha(args.alpha)]);
return args["#queue"].push([
"ensureAlpha",
(sharp) => sharp.ensureAlpha(args.alpha),
]);
};

// Exports.
Expand Down
3 changes: 1 addition & 2 deletions cmd/channel-manipulation/extract-channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

// Local modules.
import constants from "../../lib/constants.js";
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
Expand All @@ -51,7 +50,7 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push([
return args["#queue"].push([
"extractChannel",
(sharp) => sharp.extractChannel(args.channel),
]);
Expand Down
8 changes: 4 additions & 4 deletions cmd/channel-manipulation/join-channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

// @see https://sharp.pixelplumbing.com/api-channel#joinchannel

// Local modules.
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
images: {
Expand All @@ -47,7 +44,10 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push(["joinChannel", (sharp) => sharp.joinChannel(args.images)]);
return args["#queue"].push([
"joinChannel",
(sharp) => sharp.joinChannel(args.images),
]);
};

// Exports.
Expand Down
7 changes: 2 additions & 5 deletions cmd/channel-manipulation/remove-alpha.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

// @see https://sharp.pixelplumbing.com/api-channel#removealpha

// Local modules.
import queue from "../../lib/queue.js";

// Command builder.
const builder = (yargs) => {
return yargs
Expand All @@ -37,8 +34,8 @@ const builder = (yargs) => {
};

// Command handler.
const handler = () =>
queue.push(["removeAlpha", (sharp) => sharp.removeAlpha()]);
const handler = (args) =>
args["#queue"].push(["removeAlpha", (sharp) => sharp.removeAlpha()]);

// Exports.
export default {
Expand Down
6 changes: 2 additions & 4 deletions cmd/colour-manipulation/greyscale.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

// @see https://sharp.pixelplumbing.com/api-colour#greyscale

// Local modules.
import queue from "../../lib/queue.js";

// Command builder.
const builder = (yargs) => {
return yargs
Expand All @@ -40,7 +37,8 @@ const builder = (yargs) => {
};

// Command handler.
const handler = () => queue.push(["greyscale", (sharp) => sharp.greyscale()]);
const handler = (args) =>
args["#queue"].push(["greyscale", (sharp) => sharp.greyscale()]);

// Exports.
export default {
Expand Down
3 changes: 1 addition & 2 deletions cmd/colour-manipulation/pipeline-colourspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

// Local modules.
import constants from "../../lib/constants.js";
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
Expand All @@ -52,7 +51,7 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push([
return args["#queue"].push([
"pipelineColourspace",
(sharp) => sharp.pipelineColourspace(args.colourspace),
]);
Expand Down
6 changes: 2 additions & 4 deletions cmd/colour-manipulation/tint.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

// @see https://sharp.pixelplumbing.com/api-colour#tint

// Local modules.
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
rgb: {
Expand All @@ -46,7 +43,8 @@ const builder = (yargs) => {
};

// Command handler.
const handler = (args) => queue.push(["tint", (sharp) => sharp.tint(args.rgb)]);
const handler = (args) =>
args["#queue"].push(["tint", (sharp) => sharp.tint(args.rgb)]);

// Exports.
export default {
Expand Down
3 changes: 1 addition & 2 deletions cmd/colour-manipulation/tocolourspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

// Local modules.
import constants from "../../lib/constants.js";
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
Expand All @@ -49,7 +48,7 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push([
return args["#queue"].push([
"toColourspace",
(sharp) => sharp.toColourspace(args.colourspace),
]);
Expand Down
3 changes: 1 addition & 2 deletions cmd/compositing/composite.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

// Local modules.
import constants from "../../lib/constants.js";
import queue from "../../lib/queue.js";

// Helpers.
function getValueAt(arrayLike, index) {
Expand Down Expand Up @@ -177,7 +176,7 @@ const handler = (args) => {
if (args.images) inputs.push(...args.images);

// @see http://sharp.pixelplumbing.com/api-composite#composite
return queue.push([
return args["#queue"].push([
"composite",
(sharp) => {
return sharp.composite(
Expand Down
3 changes: 1 addition & 2 deletions cmd/operations/affine.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

// Local modules.
import constants from "../../lib/constants.js";
import queue from "../../lib/queue.js";
import { pick } from "../../lib/utils.js";

// Configure.
Expand Down Expand Up @@ -92,7 +91,7 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push([
return args["#queue"].push([
"affine",
(sharp) => {
const { matrix } = args;
Expand Down
5 changes: 1 addition & 4 deletions cmd/operations/blur.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

// @see https://sharp.pixelplumbing.com/api-operation#blur

// Local modules.
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
sigma: {
Expand Down Expand Up @@ -68,7 +65,7 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push([
return args["#queue"].push([
"blur",
(sharp) => {
if (args.minAmplitude || args.precision) {
Expand Down
3 changes: 1 addition & 2 deletions cmd/operations/boolean.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@

// Local modules.
import constants from "../../lib/constants.js";
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
Expand Down Expand Up @@ -53,7 +52,7 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push([
return args["#queue"].push([
"boolean",
(sharp) => sharp.boolean(args.operand, args.operator),
]);
Expand Down
5 changes: 1 addition & 4 deletions cmd/operations/clahe.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

// @see https://sharp.pixelplumbing.com/api-operation#clahe

// Local modules.
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
height: {
Expand Down Expand Up @@ -63,7 +60,7 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push([
return args["#queue"].push([
"clahe",
(sharp) => {
return sharp.clahe({
Expand Down
3 changes: 1 addition & 2 deletions cmd/operations/convolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
// @see https://sharp.pixelplumbing.com/api-operation#convolve

// Local modules.
import queue from "../../lib/queue.js";
import { pick } from "../../lib/utils.js";

// Configure.
Expand Down Expand Up @@ -86,7 +85,7 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push([
return args["#queue"].push([
"convolve",
(sharp) => {
return sharp.convolve({
Expand Down
5 changes: 1 addition & 4 deletions cmd/operations/dilate.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

// @see https://sharp.pixelplumbing.com/api-operation#dilate

// Local modules.
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
width: {
Expand All @@ -49,7 +46,7 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push(["dilate", (sharp) => sharp.dilate(args.width)]);
return args["#queue"].push(["dilate", (sharp) => sharp.dilate(args.width)]);
};

// Exports.
Expand Down
5 changes: 1 addition & 4 deletions cmd/operations/erode.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

// @see https://sharp.pixelplumbing.com/api-operation#erode

// Local modules.
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
width: {
Expand All @@ -49,7 +46,7 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push(["erode", (sharp) => sharp.erode(args.width)]);
return args["#queue"].push(["erode", (sharp) => sharp.erode(args.width)]);
};

// Exports.
Expand Down
5 changes: 1 addition & 4 deletions cmd/operations/flatten.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

// @see https://sharp.pixelplumbing.com/api-operation#flatten

// Local modules.
import queue from "../../lib/queue.js";

// Configure.
const positionals = {
background: {
Expand All @@ -48,7 +45,7 @@ const builder = (yargs) => {

// Command handler.
const handler = (args) => {
return queue.push([
return args["#queue"].push([
"flatten",
(sharp) => {
return sharp.flatten({ background: args.background });
Expand Down
6 changes: 2 additions & 4 deletions cmd/operations/flip.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@

// @see https://sharp.pixelplumbing.com/api-operation#flip

// Local modules.
import queue from "../../lib/queue.js";

// Command builder.
const builder = (yargs) => {
return yargs
Expand All @@ -37,7 +34,8 @@ const builder = (yargs) => {
};

// Command handler.
const handler = () => queue.push(["flip", (sharp) => sharp.flip()]);
const handler = (args) =>
args["#queue"].push(["flip", (sharp) => sharp.flip()]);

// Exports.
export default {
Expand Down
Loading
Loading