Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][GD] Efekt "rybiego oka" na zdjęciu
patryk9200
post
Post #1





Grupa: Zarejestrowani
Postów: 319
Pomógł: 4
Dołączył: 7.02.2009
Skąd: pless

Ostrzeżenie: (0%)
-----


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?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
patryk9200
post
Post #2





Grupa: Zarejestrowani
Postów: 319
Pomógł: 4
Dołączył: 7.02.2009
Skąd: pless

Ostrzeżenie: (0%)
-----


czyli co mam zrobić coś takiego że do komenty exec();
mam wstawić to coś?
kod
  1. <?php
  2. [left] USAGE: bump [-t type] [-a amplitude] [-r radius] [-c center] [-m] [-b bgcolor] infile outfile
  3. USAGE: bump [-h or -help]         [/left]
  4.          [left]         -t .... type ............. type of bump shaping; choices are:
  5.         .......................... 1=sinusoid, 2=triangle; 3=circular; default=1
  6.         -a .... amplitude ........ amplitude or elevation of the bump; float;
  7.         .......................... positive raises the bump; negative lowers
  8.         .......................... the depression; default=10
  9.         -r .... radius ........... radius from center point determines the extent of the bump;
  10.         .......................... integer>=0; default is half the minimum image dimension
  11.         -c .... center ........... center point for the bump; center=cx,cy;
  12.          .......................... integer>=0; default is center of image
  13.         -m ....................... mask the outside of the radius with background color
  14.         -b .... bgcolor .......... background color for the masked area outside the radius         [/left]
  15.          [left]         PURPOSE: To apply a hemispherical-like bump distortion to an image.         [/left]
  16.          [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]
  17.          [left]         ARGUMENTS:          [/left]
  18.          [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]
  19.          [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]
  20.          [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]
  21.          [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]
  22.          [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]
  23.          [left]         -b bgcolor ... BGOLOR is the color of the masked area outside the bump.          Any valid IM color is allowed. See <a href=&#092;"http://imagemagick.org/script/color.php\" target=\"_blank\">http://imagemagick.org/script/color.php</a>         The default=black.         [/left]
  24.          [left]         NOTE: Requires IM 6.4.2-8 or higher due to the use of -distort polar/depolar.          [/left]
  25.          [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]
  26. ?>
Go to the top of the page
+Quote Post

Posty w temacie
- patryk9200   [PHP][GD] Efekt "rybiego oka" na zdjęciu   27.07.2009, 00:00:09
- - flashdev   Kiedys pisalem takie zabawki w różnych językach. M...   27.07.2009, 00:36:16
- - patryk9200   muszę to wykonać w PHP bo na podstawie tego chcę r...   27.07.2009, 12:34:19
- - erix   exec" title="Zobacz w manualu PHP" target="_manual...   27.07.2009, 12:46:21
- - patryk9200   czyli co mam zrobić coś takiego że do komenty exec...   27.07.2009, 13:20:47
- - erix   Nie... Np: [PHP] pobierz, plaintext <?phpexec...   27.07.2009, 13:58:43
- - patryk9200   a ten plik bump mam dać do katalogu gdzie go wykor...   27.07.2009, 14:04:30
- - erix   Nie. Jeśli piszesz, że masz na serwerze, to powini...   27.07.2009, 14:08:58
- - patryk9200   zrobiłem coś takiego: kod [PHP] pobierz, plaintext...   27.07.2009, 14:22:52
- - Crozin   A zobacz sobie:[PHP] pobierz, plaintext <?...   27.07.2009, 14:26:25
|- - patryk9200   Cytat(Crozin @ 27.07.2009, 15:26:25 )...   27.07.2009, 14:32:48
- - Crozin   A co zwraca exec" title="Zobacz w manualu PHP" tar...   27.07.2009, 14:39:52
- - patryk9200   właśnie nic...   27.07.2009, 14:45:01
- - erix   A wykonanie tego polecenia na istniejących plikach...   27.07.2009, 14:51:19
- - Crozin   Pokaż cały Twój obecny kod.   27.07.2009, 14:52:13
- - patryk9200   robiłem na wiele sposobów i żaden nie zadziałał......   27.07.2009, 15:08:01
- - golaod   Trochę ciężko ocenić czy exec ...   27.07.2009, 15:18:57
- - Crozin   Jakbyś popatrzył do manuala to byś zauważył, że ex...   27.07.2009, 15:20:05
- - patryk9200   dziwne... zwróciło tylko Array ( )...   27.07.2009, 15:32:22
- - golaod   Pisałem wyżej... musisz dodać na końcu 2>&1   27.07.2009, 15:38:46
- - patryk9200   wyskoczył komunikat: Array ( [0] => sh: bum...   27.07.2009, 16:30:59
- - fifi209   Jak nie masz dostępu to musisz zmienić chmody...   27.07.2009, 16:46:14
- - patryk9200   gdy zrobiłem coś takiego: [PHP] pobierz, plaintext...   27.07.2009, 20:32:39
- - erix   Widocznie podałeś nieistniejący parametr.   27.07.2009, 20:44:07
- - patryk9200   gdy zrobiłem coś takiego: [PHP] pobierz, plaintext...   27.07.2009, 21:44:51
- - erix   Czytasz, co się do Ciebie pisze? Zawsze tak wywali...   27.07.2009, 21:48:04
|- - patryk9200   Cytat(erix @ 27.07.2009, 22:48:04 ) C...   27.07.2009, 21:51:11
- - Crozin   Hmmm co to za pomysł na wrzucanie plików na: / ? N...   27.07.2009, 22:02:57
- - patryk9200   jak dam ./ to wyskakuje to samo, a zdjęcie jest w ...   27.07.2009, 22:08:47
- - erix   Kod /test.jpg Slesz na początku szuka w drzewie Un...   28.07.2009, 11:54:19
- - patryk9200   czy komendy pisałem w dobrej kolejnosci?   28.07.2009, 14:42:18
- - Crozin   CytatKodUSAGE: bump [-t type] [-a ...   28.07.2009, 15:40:41
- - patryk9200   zrobiłem tak: [PHP] pobierz, plaintext <?php$ex...   28.07.2009, 21:28:17
- - erix   Kodconvert: unrecognized option `-quiet...   28.07.2009, 21:31:11
- - patryk9200   już zrobiłem na innej zasadzie działa i nie kożyst...   29.07.2009, 14:51:04


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 31.12.2025 - 06:43