Gallery3:Modules:itemchecksum - Gallery Codex
Personal tools


From Gallery Codex

ItemChecksum Module

ItemChecksum will display the MD5 or SHA-1 checksum of the specified item (picture or video).


ItemChecksum will allow you to view the MD5 and/or SHA1 checksum of any item (photo or video) in your Gallery. It does not have any theme integration, and instead must be accessed manually for each item you wish to view the checksum of.

For MD5 Checksum's, the URL is:

For SHA1 Checksum's, the URL is:

The module will then search for the first file named "FILE_NAME" in the album represented by "ALBUM_ID_NUM" and display the corresponding checksum. In the event no such file exists, it will display a 0. In the event my KeepOriginal module is installed and active, ItemChecksum will first check for an original image and if found, display it's checksum instead of the fullsized image.

In addition to the above two URLs, this module module also contains an "album count" URL which will display the number of items in an album, excluding sub-albums.

This module also supports the REST API. The following URLs will return REST-friendly SHA1 and MD5 checksums:


  • Determine a Photo/Video's MD5 checksum.
  • Determine a Photo/Video's SHA-1 checksum.
  • Determine the number of Photo's/Video's in an album.


This module may be downloaded from the Gallery forums here.

To install, extract the "itemchecksum" folder from the zip file into your Gallery 3 modules folder. Afterwards log into your Gallery web site as an administrator and activate the module in the Admin -> Modules menu.