Cześć,
Jak utworzyć efekt "rybiego oka" na zdjęciu wykorzystując bibliotekę GD ?
Jak również utworzyć coś w rodzaju falowania?
czy ktoś wie jak to zrobić??
abo uzyskać podobne efekty?
<?php [left] USAGE: bump [-t type] [-a amplitude] [-r radius] [-c center] [-m] [-b bgcolor] infile outfile USAGE: bump [-h or -help] [/left] [left] -t .... type ............. type of bump shaping; choices are: .......................... 1=sinusoid, 2=triangle; 3=circular; default=1 -a .... amplitude ........ amplitude or elevation of the bump; float; .......................... positive raises the bump; negative lowers .......................... the depression; default=10 -r .... radius ........... radius from center point determines the extent of the bump; .......................... integer>=0; default is half the minimum image dimension -c .... center ........... center point for the bump; center=cx,cy; .......................... integer>=0; default is center of image -m ....................... mask the outside of the radius with background color -b .... bgcolor .......... background color for the masked area outside the radius [/left] [left] PURPOSE: To apply a hemispherical-like bump distortion to an image. [/left] [left] DESCRIPTION: BUMP applies a hemispherical-like bump distortion to an image. The user can control the amplitude or height of the bump, the radius of the bump, the center point of the bump and the type of displacement profile used to control the shape of the bump. This is a simpler approximation of my bubblewarp script that is much faster due to the use of -distort polar/depolar and a displacement map. [/left] [left] ARGUMENTS: [/left] [left] -t type ... TYPE of displacement profile used to control the shape of the bump. Choices are: 1=sinusoid, 2=triangle; 3=circular; default=1 [/left] [left] -a amplitude ... AMPLITUDE or elevation of the bump. Values are floats. Postive values raise the bump and negative values lower the elevation. A value of zero produces essentially no change. The default=10. [/left] [left] -r radius ... RADIUS is the radial distance from the center point which determines the extent of the bump. Values are integers>=0. The default is half the minimum dimension of the image. [/left] [left] -c center ... CENTER=cx,cy are the comma separated coordinates in the image determining the center of the bump. Values are integers>=0. The default is the center of the image. [/left] [left] -m ... Enables a mask around the bump that is set to the desired background color. This gives the result a spherical or bubble effect. [/left] [left] -b bgcolor ... BGOLOR is the color of the masked area outside the bump. Any valid IM color is allowed. See <a href=\"http://imagemagick.org/script/color.php\" target=\"_blank\">http://imagemagick.org/script/color.php</a> The default=black. [/left] [left] NOTE: Requires IM 6.4.2-8 or higher due to the use of -distort polar/depolar. [/left] [left] CAVEAT: No guarantee that this script will work on all platforms, nor that trapping of inconsistent parameters is complete and foolproof. Use At Your Own Risk. [/left] ?>
<?php $filename = 'test.jpg'; $filesavename = 'test2.jpg'; ?>
<?php /usr/local/bin/php /home/test/ftp/ ?>
<?php $file['directory'] = '/images/'; $file['dirsave'] = '/captcha/'; $filename = './test.jpg'; $filesavename = './test2.jpg'; $var = 'value'; $path2im = '/usr/local/bin/convert'; $sourcepath = './test.jpg'; $destpath = './test2.jpg'; $path2im = '/usr/local/bin/convert'; ?>
<?php $exec = " /home/test/ftp/test/ADMIN/CLASS/bump -a -20 $filename $filesavename 2>&1"; ?>
<?php $filename = './test.jpg'; $filesavename = './test2.jpg'; $exec = \" /home/test/ftp/test/ADMIN/CLASS/bump -bump -a -20 $filename $filesavename 2>&1\"; ?>
<?php Array ( [0] => [1] => --- UNKNOWN OPTION --- [2] => [3] => [4] => bump: [5] => [6] => USAGE: bump [-t type] [-a amplitude] [-r radius] [-c center] [-m] [-b bgcolor] infile outfile [7] => USAGE: bump [-h or -help] [8] => [9] => OPTIONS: [10] => [11] => -t type type of bump shaping; choices are: [12] => 1=sinusoid, 2=triangle; 3=circular; default=1 [13] => -a amplitude amplitude or elevation of the bump; float; [14] => positive raises the bump; negative lowers [15] => the depression; default=10 [16] => -r radius radius from center point determines the extent of the bump; [17] => integer>=0; default is half the minimum image dimension [18] => -c center center point for the bump; center=cx,cy; [19] => integer>=0; default is center of image [20] => -m mask the outside of the radius with background color [21] => -b bgcolor background color for the masked area outside the radius [22] => ) ?>
<?php $filename = '/test.jpg'; $filesavename = 'test2.jpg'; $exec = "/home/test/ftp/test/ADMIN/CLASS/bump $filename -bump -a -20 -c 75,75 $filesavename 2>&1"; ?>
<?php Array ( [0] => convert: unrecognized option `-quiet'. [1] => [2] => --- FILE /test.jpg DOES NOT EXIST OR IS NOT AN ORDINARY FILE, NOT READABLE OR HAS ZERO SIZE --- [3] => [4] => [5] => bump: [6] => [7] => USAGE: bump [-t type] [-a amplitude] [-r radius] [-c center] [-m] [-b bgcolor] infile outfile [8] => USAGE: bump [-h or -help] [9] => [10] => OPTIONS: [11] => [12] => -t type type of bump shaping; choices are: [13] => 1=sinusoid, 2=triangle; 3=circular; default=1 [14] => -a amplitude amplitude or elevation of the bump; float; [15] => positive raises the bump; negative lowers [16] => the depression; default=10 [17] => -r radius radius from center point determines the extent of the bump; [18] => integer>=0; default is half the minimum image dimension [19] => -c center center point for the bump; center=cx,cy; [20] => integer>=0; default is center of image [21] => -m mask the outside of the radius with background color [22] => -b bgcolor background color for the masked area outside the radius [23] => ) ?>
<?php $exec = "/home/test/ftp/test/ADMIN/CLASS/bump bump [-a 20] $filename $filesavename 2>&1"; ?>
<?php Array ( [0] => convert: unrecognized option `-quiet'. [1] => [2] => --- FILE bump DOES NOT EXIST OR IS NOT AN ORDINARY FILE, NOT READABLE OR HAS ZERO SIZE --- [3] => [4] => [5] => bump: [6] => [7] => USAGE: bump [-t type] [-a amplitude] [-r radius] [-c center] [-m] [-b bgcolor] infile outfile [8] => USAGE: bump [-h or -help] [9] => [10] => OPTIONS: [11] => [12] => -t type type of bump shaping; choices are: [13] => 1=sinusoid, 2=triangle; 3=circular; default=1 [14] => -a amplitude amplitude or elevation of the bump; float; [15] => positive raises the bump; negative lowers [16] => the depression; default=10 [17] => -r radius radius from center point determines the extent of the bump; [18] => integer>=0; default is half the minimum image dimension [19] => -c center center point for the bump; center=cx,cy; [20] => integer>=0; default is center of image [21] => -m mask the outside of the radius with background color [22] => -b bgcolor background color for the masked area outside the radius [23] => ) ?>
<?php $exec = " bump [-a 20] $filename $filesavename 2>&1"; ?>