Gallery3:Modules:bitly - Gallery Codex
Personal tools


From Gallery Codex Module

Shorten Gallery's album and item links using's URL shortening service.


With the popularity of sharing links via Twitter, Facebook, and SMS has come several URL shortening services, including The Gallery module sends Gallery's album, photo, and movie item links to to be shortened to something like


  • Provides "Shorten link with" site and contextual menu links
  • Displays shortened links in the info module's sidebar block
  • Choose or as a base URL
  • Provides static methods to shorten and retrieve item links for other Gallery modules, including Twitter

Support, Bug Reports

Please post problems, questions, and comments to


  1. Sign up for a account
  2. Download and unpack the zip bundle to your Gallery 3 modules directory
  3. Enable the module via Admin > Modules
  4. Configure the module at Admin > Settings >
    1. Enter your Username and API Key
    2. Select a preferred domain, or

The module is also available via Git in gallery3-contrib


A few additional notes on the module.

  • The preferred domain setting may be changed at anytime without breaking existing shortened links. The Gallery item's hash can be used with either domain.
  • Your account will provide some nice extras, including click counts, QR codes, and social network sharing stats for your shortened Gallery links.