   [web] Speed of PHP GD2: Which is the best method?
  I am working on a webpage that needs a semi-dynamic image. I say semi-dynamic, because it is actually going to be either a PNG or JPEG (have not done optimizations to see what will work best) image with a dot in one of probably 60 to 80 locations on the image. Now, I can see two ways of doing this:1. Use GD2 to generate the image with a dot on it, and use 2 variables in an array as coordinates. 2. Create the 60 - 80 images and store them on the server. Then use a switch statement to load the correct version. Perhaps a bit of performance could be saved due to the two-level coordinate array, because I could turn it into a nested IF construct so at most it would only have to go through 30 - 40 of the decisions. I am not sure exactly how fast GD2 works vs. a large switch or nested IF statement like this. Does anyone have any ideas on what would be fastest? Or I am completely off the mark and there is a better way to do it? Thanks!   
  What I would do in this situation would be to just render the "semi dynamic" image client side using 2 divs. One for the png/jpeg, and one for the dot.   ;  Ahh, that is probably the best way to do it. I don't have much experience with &#106avascript/AJAX, so I wasn't even thinking about that. Thanks!   