Skip to content

About

Image processing through the ImageMagick 7 command line: resize, crop, convert, annotate, compare, with safe defaults

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

@deckyard/magick

test Documentation release

Image processing for Jennifer through the ImageMagick™ 7 command line: resize, crop, thumbnail, rotate, strip metadata, annotate, watermark, convert between formats, identify, compare and montage. Built for images and file names you do not control: no shell, formats pinned and allow-listed, file names and text checked, memory, size and time limits on every command.

Documentation

Install

jvc add @deckyard/magick

Or unpack src/ from a release archive (deckyard-magick-<version>.tar.gz) into vendor/deckyard/magick/.

Usage

import "@deckyard/magick/" as magick;

def c as magick.Config init magick.config();
def img as magick.Image init magick.open($c, "upload.jpg");
$img = magick.strip(magick.shrinkOnly(magick.autoOrient($img), 1600, 1600));
magick.write($c, magick.quality($img, 82), "photo.webp");

def info as magick.Info init magick.identify($c, "photo.webp");
io.printf("%dx%d %s\n", $info.width, $info.height, $info.format);

Requirements

Jennifer 0.27.0 or newer and the default jennifer binary (the deck needs the exec capability); ImageMagick 7 (magick) on the host.

Development

tools/check-all.sh                   # the full gate, as CI runs it
jennifer test src/magick_test.j      # tests; the live ones need ImageMagick 7
tools/check-docs.sh                  # docs against the code

The tests that run ImageMagick return early where it is not installed, as in CI's container; run the suite on a machine with ImageMagick 7 before a release.

Licence

LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <mplx@jennifer-lang.dev>.

Trademarks

ImageMagick™ is a trademark of ImageMagick Studio LLC. PostScript™ is a trademark of Adobe Inc. Ghostscript™ is a trademark of Artifex Software, Inc. Other product and company names may be trademarks of their respective owners. They are used only to identify the products this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by ImageMagick Studio LLC, Adobe Inc. or Artifex Software, Inc.

About

Image processing through the ImageMagick 7 command line: resize, crop, convert, annotate, compare, with safe defaults

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors