I've created a function that's part of a class of image functions. The function in question replaces 'tiles' from a $source image on to a $dest image according to some $x, $y and $dimensions (it's a square so height and width are the same).
The weird thing is that if I run this function on one script, it runs fine. However, if I run the function on another script - bare in mind they're both getting the same variables - the output is different.
Have you sorted this yet? I cannot imagine what would make different images if the exact same data was passed to the function just the function is within different scripts on the same server. My guess is there is something small that you are overlooking. I also have a feeling that the input to the functions are slightly different giving you different output. there's something wrong with the logic somewhere it seems.