Skip to content
deckyardPublic

About

Read, modify and delete EXIF metadata in JPEG, PNG and WebP images

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

@deckyard/exif

test Documentation release

Read, change and remove the EXIF metadata of JPEG, PNG and WebP images from a Jennifer program: every IFD, all twelve field types, the thumbnail, GPS and date readers. Writing replaces only the EXIF segment or chunk; every other byte of the image stays as it was.

Documentation

Install

jvc add @deckyard/exif

This vendors the deck to vendor/deckyard/exif/. Without jvc, unpack the src/ subtree of a release archive (deckyard-exif-<version>.tar.gz) there.

Usage

import "@deckyard/exif/" as exif;

def img as bytes init fs.readBytes("photo.jpg");
def e as exif.Exif init exif.read($img);
io.printf("%s %s\n", exif.text($e, "Make"), exif.text($e, "Model"));

$e = exif.removeGps($e);
$e = exif.setText($e, "Artist", "Ada Lovelace");
fs.writeBytes("shared.jpg", exif.write($img, $e));

Requirements

Jennifer 0.28.0 or newer. Pure Jennifer: no network, no external programs; only readFile, writeFile and stripFile touch the disk.

Development

tools/check-all.sh                   # the full gate, as CI runs it
jennifer test src/exif_test.j        # the test overlay
tools/check-docs.sh                  # docs against the code
tools/pack.sh dist                   # build the release archive

Trademarks

XMP™ is a trademark of Adobe Inc. Canon™ is a trademark of Canon Inc. Sony™ is a trademark of Sony Group Corporation or its affiliates. TIFF™, DNG™ and other product and company names may be trademarks of their respective owners. They are used only to identify the formats and cameras this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by Adobe Inc. or any camera maker.

Licence

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

tools/check-headers.sh checks every source file's SPDX header against deck.toml.

About

Read, modify and delete EXIF metadata in JPEG, PNG and WebP images

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors