Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php generate image curly arrow

Tags:

php

image

gd

is it possible to create this image in PHP using GD ? i know i need to use GD and imagecreate, imagecolorallocate, imagedestroy etc... but i have no idea how to do the curve

i need to create multiple arrows with these patterns

  • different type of arrows
  • different inclination of the curve
  • different colors
  • different length

edit: this way i don't have to look on the internet for arrows (based on a user/client specs). and then later i will add text to the image (for example: click next or follow the arrow). since im not a graphic designer, creating these iamges using gd will be easier for me.

eg:

http://kennebecvalleycoaching.com/red_arrow_curve.JPG
http://s3.amazonaws.com/satisfaction-production/s3_images/13664/curved_inline.png

thanks

like image 542
joel Avatar asked Nov 15 '11 15:11

joel


1 Answers

Instead of doing it server side, you could investigate things like canvas, or raphael, and create the graphical elements clientside. It will be much more flexible, and less hassle.

like image 191
dmp Avatar answered Sep 18 '22 19:09

dmp