Solved

PHP: image GD how to twirl and morp image

Posted on 2008-06-19
3
439 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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 benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

738 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