quote:
Originally posted by WDZ
Sounds like you'll have to divide the base image into blocks and apply your "average color" script to each one, because if you "duplicated" the base image pixel-by-pixel, the output image would have to be huge in order to see the detail of each of the small images that create the mosiac.
thats what i am planning on doing.
quote:
And how will you find which images already on the server are the closest match to the color you need?
well the average red number, green number and blue number is stored in a database for each 20x20 image, then the average r,g and b for each 20x20 tile in the base image is worked out, and there will be a tolerence (say 20 either way) to find an image which is roughly the same.
quote:
And what if the base image has a large area of the same color? Will the same small image be used for the whole area?
im trying to work that one out, im thinking of some way to store which images have been used, already.
quote:
Will the output be a single image with all the small images imagecopy()ed into it?
no that will take up too much server time, im planning on having each 20x20 image lined up against each other as a html file, the 20x20 image i used to test the script out is half a kilobyte, so it shouldnt make the page size too big.