Solved

PHP: image GD how to twirl and morp image

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Blog posts not showing up on Blog page 7 50
xampp tool 12 24
datetime in sql 6 23
Intermittent Error on Page Loading 4 10
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.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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:
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

914 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

15 Experts available now in Live!

Get 1:1 Help Now