Previews

Tcl3D-Full 0.9.4 (2021-11-06)
tclMuPDF 2.1.1 (2021-08-26)
TIP 529: Image Metadata (2020-09-02)
Tcl3D-Full 0.9.4 (2021-11-06)

BAWT Tcl 8.6.11 distribution including Tcl3D-Full. Tcl3D-Full includes OpenSceneGraph wrapper based on version 3.4.1.

Downloads:

Top of page

tclMuPDF 2.1.1 (2021-08-26)

BAWT preview build of library tclMuPdf.

The preview contains build and source code files of MuPDF, tclMuPdf and the MuPDFWidget, test scripts, as well as a slightly changed version of Bawt.tcl and an example Setup file.

You need to have BAWT 2.0.0 installed, see Getting started. Then copy the contents of the ZIP file into the appropriate directories.

Tested with Tcl/Tk 8.6.11 and 8.7.a5 on the following systems:

  • Windows 10 (32/64-bit: Visual Studio 2015, 2017, 2019. gcc 7.2.0)
  • Linux (64-bit: SUSE 13.1, SUSE 42.3, Debian 10.2 , Ubuntu 20.04)
  • MacOS (64-bit: BigSur 11.4)

Downloads:

You have to install the VisualStudio Redistributables 2019, if encountering an error like this:
couldn't load library "C:/Tcl/lib/tclMuPdf2.1.1/win-x64/tclMuPDF.dll": this library or a dependent library could not be found in library path

poApps with tclmupdf

Using tclMuPdf with poApps image viewer to display a PDF as an image.

Top of page

TIP 529: Image Metadata (2020-09-02)

Setup files for Windows containing a preview of TIP 529 and associated new Img 1.5.0 version.

Corresponding source code links:

A simple metadata viewer for testing is available as a Tcl script.

> tclsh MetadataViewer.tcl --help

MetadataViewer.tcl ?-img? ?-jp2? ?-chk? DirName

Apply "image metadata" command to all files of
directory "DirName" and show the metadata
information of each file in a tablelist.
By default, only the image parsers of Tk are used.

Options:
-img: Additionally load Img extension on startup.
-jp2: Additionally load imgjp2 extension on startup.
-chk: Create a photo image for each file and compare the
      metadata information of the photo image against the
      metadata information retrieved by "image metadata".

MetadataViewer1

Using Tk 8.6.11 and Img 1.4.13 no metadata information is available and thus the table columns are empty. Available image information is width and height, but only after reading the complete image. This is the default currently.

MetadataViewer2

Using Tk 8.6.11 and Img 1.5.0 no metadata information is available and thus the table columns are empty. Available image information is width and height, but only after reading the complete image. This combination shows the compatibilty of new Img version with Tk 8.6.

MetadataViewer3

Using Tk 8.7a4 (metadata branch) with Img 1.4.13 basic metadata information like format, width and height are available without reading the complete image, but just by calling the Match function of the photo image framework.

MetadataViewer4

Using Tk 8.7a4 (metadata branch) with Img 1.5.0 basic metadata information like format, width and height as well as additional metadata like physical resolution are available without reading the complete image, but just by calling the Match function of the photo image framework.

Top of page