[Phpwm] displaying images on screen
Tim Williams
T.M.Williams at cs.bham.ac.uk
Thu Oct 2 15:10:32 UTC 2008
On Thu, 2 Oct 2008, Alex Mace wrote:
> If you're operating on files that are already on the system then by
> definition they'll already have unique filenames...
Yes, but the processed output needs to have a different unique name for
every possible operation, otherwise if user 1 rotates file.jpg by -90 and
user 2 rotates it by +145, with those requests coming into the server at
the same time you could have one of four possible outcomes, depending on
the precise timing of the requests :
1) Both users see a -90 rotation
2) Both users see a +145 rotation
3) Both users see a +55 rotation
4) Both users get what they want.
Unfortunatly, in this situation, you can't predict exactly which outcome
will happen in any given case.
Daniels suggestion of incorporating the degree of rotation into the file
name would solve this problem and give a unique file name for every
possible variation for any given starting image.
Tim W
--
Tim Williams BSc MSc MBCS - Euromotor Autotrain
Web : http://www.autotrain.org
Tel : +44 (0)121 414 2214 (ext 42214 on internal phone)
More information about the Phpwm
mailing list