Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

PHP: image GD how to twirl and morp image

how to make a a captcha to morp and spin?
so it look more hard for bot to read.

any idea?
0
alicca
Asked:
alicca
  • 2
1 Solution
 
hernst42Commented:
not possible with native gd functions. You need to invoke an external programm which does the effects like gimp. Or use a different Captcha genrator.
0
 
aliccaAuthor Commented:
any suggestion link that i can see the code?
0
 
hernst42Commented:
We have a gimp function that does the operation (autocrop in my case) and invoke it from php like this:
$cmd = '/usr/bin/gimp -i --batch-interpreter plug_in_script_fu_eval -b \'(auto-crop-batch "'
            . $tmp . '" "' . $dst . '")\' \'(gimp-quit 0)\'';
$result = null;
exec($cmd, $msg, $result);

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now