Hello all, Two part question really... I am designing a system that does two important tasks:
1) colorizes (using any color in the spectrum) white-colored shapes using the GD library
2) Adds a pattern to white-color shapes using the Image Magic library.
Example.
1. I have a circle;
2. I can click on the color red and the circle changes color to red.
3. I now click on an camoflauge pattern and the circle now changes to a camoflauge color.
My question is, which process is more efficient?
A) Create the resulting image as a file and save it to the filesystem. Then simply check if that file exists and display it when a user calls that color. (Con: The file system could literally have millions of files.)
B) Do everything on the fly? Use GD and ImageMagick to simply produce the colorized/patterned images on the fly when needed. (Con: Performance is 1,000,000 people access this functionality at once)
Please keep in mind that simply changing colors using CSS is not an option AND the site will have excess of 100,000 people on at a time.
Thanks a bunch!