Omnium Open Forums » Support » Documentation and Tips

No images: GD2?

(9 posts)
  • Started 2 years ago by eattheword
  • Latest reply from dancallaghan
  • This topic is resolved

  1. I'm playing around with my new Omnium installation. I created a news item and uploaded a JPEG image. Alas, the thumbnail is blank as is the large frame that opens up when I click on the image. I have tried PNG as well.

    I assume this is something to do with PHP's use of GD? I think I have GD2 installed. When I type php -i I do see the following section in the output:

    gd
    
    GD Support => enabled
    GD Version => bundled (2.0.34 compatible)
    FreeType Support => enabled
    FreeType Linkage => with freetype
    FreeType Version => 2.1.10
    T1Lib Support => enabled
    GIF Read Support => enabled
    GIF Create Support => enabled
    JPG Support => enabled
    PNG Support => enabled
    WBMP Support => enabled
    XBM Support => enabled

    Any ideas?

    Posted 2 years ago #
  2. dancallaghan
    Member
    13 posts

    Have you got ImageMagick installed on your machine? We're currently phasing it out for GD functions, but it is still integral in some instances.

    Posted 2 years ago #
  3. Yes, I have ImageMagick. Or rather, I know I have the Mogrify, Convert, Composite, and Identify programs in the locations specified during installation. Are there any other ImageMagick programs I need to check for? I know I installed it a while back as it's part of my LaTeX distribution.

    Posted 2 years ago #
  4. I reinstalled ImageMagick using MacPorts and changed the omnium.ini file to point to these versions of the IM programs (in /opt/local/bin) and still no joy. I created a gallery entry and have tried JPEG and PNG images with no success. The only images that seem to show thumbnails are GIFs. PNGs show neither thumbnail nor full size image (clicking on the magnifying glass). No JPEGs show thumbnails, though *some* show up in full size mode (but only some). TIFFs (after I changed the settings to allow upload) show a default icon -- clicking on the magnifying glass shows a 'download this file' icon.

    Does this offer any clues as to the problem?

    Posted 2 years ago #
  5. dancallaghan
    Member
    13 posts

    This still sounds like an ImageMagick problem. I changed my omnium.ini file to point to the wrong path for the programs and I got an error much like yours. Could you try and check the path in the terminal and use the ImageMagick applications to see if the are working properly.

    Posted 2 years ago #
  6. Ok, found the problem. 2 things:

    Ok, thanks for that. That means that although the IM programs *are* installed in /usr/local/bin something else is happening. Here's what I found:

    First, omnium.ini has *two* [programs] sections -- one near the top and one at the bottom, the second being a duplicate of the first! Obviously I didn't think it would have two sections. Hence, I changed the paths in the top one but the bottom one was resetting them!

    Second, although which mogrify returns /usr/local/bin, I found if I changed the locations in omnium.ini to /opt/local/bin in *both* [programs] sections, then the thumbnails and image zoom now work. /opt/local/bin has the versions of the ImageMagick programs installed by MacPorts. Why the ones in /usr/local/bin don't work I have no idea, but I'm not really a Unix person yet, so that's no surprise. The file sizes of, for example, the two mogrify programs are different, so perhaps there's a versioning issue? I can't find out how to get mogrify to tell me what version it is though.

    Phew

    Posted 2 years ago #
  7. dancallaghan
    Member
    13 posts

    That is quite strange! I think it must've been a problem with the installer inserting the [programs] area of the omnium.ini after the original one instead of overwriting it. I hope the installation process wasn't too painful, it would be nice to get some feedback on the application as well. The feedback you gave and problems you have found with the installation process has been most helpful, thanks :)

    Posted 2 years ago #
  8. sambauers
    Administrator
    28 posts

    The ImageMagick in /usr/local/bin pobaly didn't have support for JPEG and PNG. The other ImageMagick probably did.

    There should only be one [programs] section in the INI file. The one at the top. The installer is probably the culprit there.

    Posted 2 years ago #
  9. dancallaghan
    Member
    13 posts

    Yeah the installer is the culprit, Paul is going to be fixing these things for the next release.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.