Animated Gifs and Drop Shadows           www.prodigyview.com
OverviewObjectiveLearn the how to create animated gifs using images and text.Also learn how to add a drop shadow to an ima...
Follow Along With A Code                Example1. Download a copy of the example code at  www.prodigyview.com/source.2. In...
Animated GifsAnimated gifs are multiple images comprised in one giffile. To begin this tutorial, we are going to create mu...
Gif ImagesIf you were to take a second and look at the imagescreated, you should have 10 images in your file systemthat lo...
Creating The AnimationThose 10 image locations are in the array we created. Now wecan pass that array into PVImage::animat...
Text GifsWe can create animated gifs not only with images, butwith text also. The process is very similar, create an array...
GIF OptionsThis time we are going to customize the gif creationprocess some by creating an array of options               ...
Animate The TextThe array of string and the options are passed intoPVImage::animateText() and we get an animated gif.1. Th...
Drop ShadowCreating a drop shadow is pretty easy. All we need is an imageto add the drop shadow too and then pass the loca...
Drop ShadowIt’s not much, but we’ve manage to add a small dropshadow in the image.                                        ...
Drop Shadow OptionsWe can do a little better with that drop shadow. Let’s addsome options in to make the drop shadow a lit...
Better Drop ShadowThere, that’s more of a drop shadow now. A little tweakingand the drop shadow position and color can be ...
Review1. Create an animated gif with images using   PVImage::animateImage()2. Create an animated gif with text using   PVI...
API ReferenceFor a better understanding of the image manipulation, checkout the api at the two links below.PVImage        ...
Nächste SlideShare
Wird geladen in …5
×

Animated GIFS and drop shadows PHP

3.627 Aufrufe
3.445 Aufrufe

Veröffentlicht am

Learn the how to create animated gifs using images and text. Also learn how to add a drop shadow to an image.

Veröffentlicht in: Technologie
0 Kommentare
0 Gefällt mir
Statistik
Notizen
  • Als Erste(r) kommentieren

  • Gehören Sie zu den Ersten, denen das gefällt!

Keine Downloads
Aufrufe
Aufrufe insgesamt
3.627
Auf SlideShare
0
Aus Einbettungen
0
Anzahl an Einbettungen
24
Aktionen
Geteilt
0
Downloads
12
Kommentare
0
Gefällt mir
0
Einbettungen 0
Keine Einbettungen

Keine Notizen für die Folie

Animated GIFS and drop shadows PHP

  1. 1. Animated Gifs and Drop Shadows www.prodigyview.com
  2. 2. OverviewObjectiveLearn the how to create animated gifs using images and text.Also learn how to add a drop shadow to an image.Requirements Understanding of Image Basics Installed version of ImagickEstimated Time10 minutes www.prodigyview.com
  3. 3. Follow Along With A Code Example1. Download a copy of the example code at www.prodigyview.com/source.2. Install the system in an environment you feel comfortable testing in.3. Proceed to examples/avi/ImageAnimationsandShadows.php http://www.prodigyview.com
  4. 4. Animated GifsAnimated gifs are multiple images comprised in one giffile. To begin this tutorial, we are going to create multipleimages of a circle at different degrees.1. Create an array to store the gifs in 2.Create an ellipse with different end angles 3. Add the return location of the ellipses to the images array www.prodigyview.com
  5. 5. Gif ImagesIf you were to take a second and look at the imagescreated, you should have 10 images in your file systemthat look something like below.
  6. 6. Creating The AnimationThose 10 image locations are in the array we created. Now wecan pass that array into PVImage::animateImage and we willget a gif of a completing circle. 1. The array of images 2. The newly created gif www.prodigyview.com
  7. 7. Text GifsWe can create animated gifs not only with images, butwith text also. The process is very similar, create an arraywith text at different index. www.prodigyview.com
  8. 8. GIF OptionsThis time we are going to customize the gif creationprocess some by creating an array of options www.prodigyview.com
  9. 9. Animate The TextThe array of string and the options are passed intoPVImage::animateText() and we get an animated gif.1. The array of text 2. Options3. Location of the new gif
  10. 10. Drop ShadowCreating a drop shadow is pretty easy. All we need is an imageto add the drop shadow too and then pass the location of thatimage into PVImage::drawDropShadow.1. The location of the image 3. Returns a path to the image 2. Pass the image in
  11. 11. Drop ShadowIt’s not much, but we’ve manage to add a small dropshadow in the image. A tiny drop shadow www.prodigyview.com
  12. 12. Drop Shadow OptionsWe can do a little better with that drop shadow. Let’s addsome options in to make the drop shadow a little moreapparent.1. Set the options to change to position of the drop shadow 2. Pass the options to create the drop shadow
  13. 13. Better Drop ShadowThere, that’s more of a drop shadow now. A little tweakingand the drop shadow position and color can be changed. A better drop shadow www.prodigyview.com
  14. 14. Review1. Create an animated gif with images using PVImage::animateImage()2. Create an animated gif with text using PVImage::animateText()3. Create a drop shadow on an image using PVImage::drawDropShadow() www.prodigyview.com
  15. 15. API ReferenceFor a better understanding of the image manipulation, checkout the api at the two links below.PVImage More Tutorials For more tutorials, please visit: http://www.prodigyview.com/tutorials www.prodigyview.com

×