Solved

PHP: image GD how to twirl and morp image

Posted on 2008-06-19
3
430 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now