Solved

PHP: image GD how to twirl and morp image

Posted on 2008-06-19
3
438 Views
Last Modified: 2008-06-26
how to make a a captcha to morp and spin?
so it look more hard for bot to read.

any idea?
0
Comment
Question by:alicca
  • 2
3 Comments
 
LVL 48

Expert Comment

by:hernst42
ID: 21820628
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
 
LVL 2

Author Comment

by:alicca
ID: 21820742
any suggestion link that i can see the code?
0
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
ID: 21834799
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question