Tcl Library Source Code

EuroTcl/OpenACS 11 - 12 JULY 2024, VIENNA

[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]


jpeg - JPEG querying and manipulation of meta data

Table Of Contents


package require Tcl 8.5 9
package require jpeg ?0.6?

::jpeg::isJPEG file
::jpeg::imageInfo file
::jpeg::dimensions file
::jpeg::getThumbnail file
::jpeg::getExif file ?section?
::jpeg::getExifFromChannel channel ?section?
::jpeg::formatExif keys
::jpeg::removeExif file
::jpeg::stripJPEG file
::jpeg::getComments file
::jpeg::addComment file text...
::jpeg::removeComments file
::jpeg::replaceComment file text
::jpeg::debug file
::jpeg::markers channel


This package provides commands to query and modify JPEG images. JPEG stands for Joint Photography Experts Group and is a standard for the lossy compression of photographical images. It is specified at LINK_HERE.



can only work with files cant write exif data gps exif data not parsed makernote data not yet implemented

Bugs, Ideas, Feedback

This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category jpeg of the Tcllib Trackers. Please also report any ideas for enhancements you may have for either package and/or documentation.

When proposing code changes, please provide unified diffs, i.e the output of diff -u.

Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.


comment, exif, image, jfif, jpeg, thumbnail


File formats


Copyright © 2004-2005, Code: Aaron Faupell
Copyright © 2007, Code: Andreas Kupries
Copyright © 2004-2009, Doc: Andreas Kupries
Copyright © 2011, Code: Pat Thoyts