Home Forums AFP548 Community Projects Gallery 2

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #366125
    ElgertS
    Participant

    PROJECT DESCRIPTION: This project is the installation of Gallery 2 with support for Postscript and PDF. Gallery is a powerful and popular web image gallery solution that can interoperation with a variety of other popular Open Source software solutions such as Geeklog, Joomla, Drupal and others. Besides its excellent primary function of displaying JPEG files, Gallery is of interest as an asset management solution due to its effective meta-data, search and the wide variety of easy to use methods for transferring files into your Gallery, including the most excellent Gallery Remote Java application complete with realtime progress bars. Gallery works with a variety of image engines offering it the ability to display web previews for a wide variety of file types. In this project we will be installing Gallery 2 with support for GD2, ImageMagick and Ghostscript. Note it is also possible to add support for RAW, motion video and many other file types that we will add to this project at a later time.

    For more information on Gallery, visit the Gallery website:

    http://gallery.menalto.com/

    Please do not post questions or comments directly to this project.

    #366126
    ElgertS
    Participant

    Gallery 2 – Step 1: PHP with GD2 support

    If your PHP doesn’t already support GD2, please follow the instructions in the Easy PHP4 and PHP5 project in this same area. You can work with either version of PHP you prefer depending on the requirements of other software you are running on your server.

    Also verify you have MySQL configured on your server using either the MySQL Apple ships with Mac OS X Server or your own installation. All versions of MySQL including the new MySQL 5 are supported.

    #366127
    ElgertS
    Participant

    Gallery 2 – Step 2: Graphics Libraries

    Gallery operates with a variety of graphic libraries of which the most comprehensive is ImageMagick. In this project we will use an installer that loads a recent version of ImageMagick and offers two compiled versions to choose from. One is an 8-bit version and the second offers 16-bit image support. 16-bit images are of course larger and should only be used if you have need of 16-bit image support. 16-bit images are mostly for photographic master files and offer greater quality and freedom to manipulate the image without loss in image quality.

    Download and install the Graphic Libraries:

    http://tinyurl.com/jzqcf

    #366128
    ElgertS
    Participant

    Gallery 2 – Step 3: Download Ghostscript

    Next we want to compile Ghostscript to support EPS, Postscript, Adobe Illustrator, and PDF file formats. First, we download Ghostscript:

    http://tinyurl.com/jo8u9

    Make sure you download both Ghostscript and the Ghostscript fonts as both are necessary.

    Uncompress on your Desktop and fire up the terminal and cd into the decompressed ghoscript directory on your Desktop. Run the following commands as sudo:

    ./configure

    Once the configure command is done:

    make

    and when make is complete:

    make install

    Your final step is to copy the fonts you downloaded to their correct location on your server:

    cp -R ~/Desktop/fonts /usr/local/share/ghostscript/fonts

    #366129
    ElgertS
    Participant

    Gallery 2 – Step 4: Edit ImageMagick

    Note: The first part of this step is a total kludge and I hope someone will berate me with the correct solution instead. I have tried to add the location of the Ghostscript binary to the system Profile, but have not had success in getting ImageMagick to find Ghostscript. If you don’t have a problem with this, skip the first half of this step, otherwise:

    Edit the following file using Text Wrangler or your favorite text editor:

    /usr/local/graphicslibs/ImageMagick-6.2.6/config/delegates.xml

    Replace all instances of:

    gs

    with:

    /usr/local/bin/gs

    There should be ten instances replaced.

    Next, if you are going to be posting any CMYK files you need to adjust Gallery 2.1.1a. Note this may be resolved in a future version of Gallery. Follow the instructions on this url:

    http://tinyurl.com/s5ccy

    #366130
    ElgertS
    Participant

    Gallery 2 – Step 5: Download Gallery

    Next, make a new database in MySQL using phpMyAdmin or the handly MySQL Adminstrator application for Mac OS X from mysql.com.

    Download Gallery using the Full installer:

    http://tinyurl.com/dko8h

    Decompress and move to your chosen web location. Configure Server Admin as needed to host the website and set the entire directory to be owned by www.

    Now, load the url for your new Gallery website and following the installation sequence.

    Once completed, authenticate into Gallery and go to "Site Admin" and then to "Modules". Enable the ImageMagick module and provide the location for it:

    /usr/local/graphicslibs/bin/

    Activate ImageMagick and you will find its controls listed on the left next to GD2. Click on ImageMagick controls and test. If all is well you should see support for PDF, Postscript, EPS, and AI files.

    Enable CYMK support if you require it. If you edited the files in the previous step, when uploading a CMYK EPS file, an RGB JPEG preview will be generated for display in a web browser, but the actual asset will remain a CYMK file.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Comments are closed