Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Security Image - Quick Fix

  1. #11
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Are you on a dedicated or VPS server?

    Double check that ImageMagick is installed (I assume it is, since the background shows) - and also ghostscript - which contains the required libs for the text processing.

    You can check both by logging in SSH and running:

    root@cp [~]# which mogrify

    which should display something like
    /usr/bin/mogrify

    and
    root@cp [~]# which ghostscript

    which should display something like
    /usr/bin/ghostscript

    Also - make sure "Use GD" is disabled in your dating site admin panel in settings.

    If all of that is checked and OK - then perhaps more /inc/image.inc.php editing is needed - but double check the above first before doing that.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  2. #12
    afrogeek
    Guest

    Default Image magik and Ghost script

    Well, here's the situation. Imag Magik is installed. I'm not sure about ghost script. But, I have another Dolphin install on the same server which works fine. It is Dolphin 5.2 . Does 5.2 and 5.4 use different libraries?

  3. #13
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    This is how I would fix it....

    First - make sure 100% that your "Use GD" is off in the admin panel - or you may be troubleshooting the wrong thing!

    In /inc/images.inc.php - will see the function

    function produceSecurityImage( $text, $hash )

    That gets called from /simg/simg.php

    Look in the else section (not using GD)

    @exec( $cmd );

    This is done two times - once to make the background image, and a second time to put the text on that image.

    You could troubleshoot it by

    1) edit the value for the preceeding
    Code:
    $cmd  = "$CONVERT {$dir['root']}simg/images/bg{$backgroundIndex}.png -crop {$sizeX}x{$sizeY}+{$backgroundOffsetX}+{$backgroundOffsetY} $workFilename";
    
    $cmd  = "$CONVERT {$dir['root']}tmp/bg{$hash}.png -font $fontFile -fill \"{$color}\" -pointsize $fontSize -gravity NorthWest -draw \"translate {$textX},{$textY} rotate {$angle} text 0,0 '{$text}'\" $workFilename";
    into something very basic and simple. Instead of using the variables in the cmd statements - hard code in or remove as needed. The goal is to get it to work - all the fancy stuff makes no difference now - you can re-add that in later.

    2) If still trouble - run the command from $cmd statements in ssh - so you can see how ImageMagick behaves with them.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  4. #14
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    In Dolphin 5.6.4 - if text in security image does not show with ImageMagick in use, in /inc/images.inc.php

    Code:
    //$backgroundOffsetX = rand( 0, $backgroundSizeX - $sizeX - 1 );
    //$backgroundOffsetY = rand( 0, $backgroundSizeY - $sizeY - 1 );
    $backgroundOffsetX = 1;
    $backgroundOffsetY = 1;
    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  5. #15
    PLAYMATE
    Guest

    Thumbs down My security image was showing perfect

    My security image was showing perfect and now is not showing what went wrong?

    D 5.6.4

  6. #16
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    I replied to your message about this here:

    http://www.modmysite.com/bugs-dolphin-5-6-4/6514.htm#post25820

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. security image problem
    By polscot in forum Security / Server Administration
    Replies: 3
    Last Post: 01-15-2008, 08:37 AM
  2. Security Image....new problem
    By diamontay69 in forum General Issues, Comments, Questions
    Replies: 2
    Last Post: 10-29-2007, 12:21 AM
  3. Security Image Array Contains 0 and o
    By Smoge in forum Bugs Dolphin 6.00
    Replies: 6
    Last Post: 09-07-2007, 11:50 PM
  4. security image
    By dgk in forum Dolphin General Discussion v5.0 to v5.21
    Replies: 7
    Last Post: 11-21-2006, 01:31 AM
  5. security image
    By ijk in forum Security / Server Administration
    Replies: 0
    Last Post: 07-02-2005, 02:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •