Table of Contents
Introduction

The gallery export function of TGPX allows you to export some or all of your galleries so they can be used in other TGPX installations or with third party programs. This document will describe how to export galleries from your TGPX installation.

Control Panel Interface

To use the gallery export function access the Galleries > Search Galleries function from the control panel menu. This will load the standard Search Galleries interface, which will display a drop-down list of functions at the bottom of that page. Select the Export function from the first drop down list, and an option from the second drop down list to control which galleries get exported. Those options are: Once you have selected the Export function and the galleries you want to export, click the Execute button. This will open a popup window where you will be able to select some additional options to control how the galleries will be exported. Each of those options is described below. After setting these options how you like, press the Export Galleries button to start the process. Depending on the number of galleries you are exporting, this process may take several minutes to complete.

File Formats

When exporting galleries you have a choice of 2 different file formats to use: The Thumbnail Export File

Your thumbnail preview images can optionally be included in the export, and a separate file will be generated that contain these images. This file will be a plain text file with one thumbnail image per line. Each line has this format: FILENAME|BASE 64 ENCODED IMAGE Where FILENAME is the name of the image on your server and BASE 64 ENCODED IMAGE is a base 64 encoded string of the image file contents.

The thumbnail export file can be useful in two situations:
  1. With the Raw SQL format. When you are using this format, you can use the TGPX database restore function to import the galleries into another TGPX installation. Since the restore function allows you to specify the filename of a thumbnail backup file, you can enter the name of the file generated by the export function.

  2. If you are using a third party program for which you can create a custom addon that is capable of reading the thumbnail export file.