DescriptionThere are two patches squashed into one. Since the second removes some extra work, it's ok to present them together.
---
The code and cleanup to support proxied image resizing.
Based on the initial work of Paul Lindner of Hi5. His work in turn is
based on further contributions, but I don't know at present which ones.
New contributions are Copyright (c) 2009 Google. Rest by Paul Lindner.
o Reorganized the image rewriter implementation from Paul, and corrected
a few bugs in the image dimensions computation.
o A few readability changes.
o Verified new behavior and added the tests to guard against accidental
further behavior changes.
o Modified the caching policy to take into account the resizing URL
arguments required for resizing to work.
o Factored the cache key building into a builder class that ensures
backward compatibility of the generated cache keys, and makes building
cache keys easier in general.
o Added the tests to guard against accidental behavior changes in the
cache key builder.
o Fitted all the pieces back together again.
---
Removed the text fixture that depends on the used JVM.
The checksum-based tests turned out not to be portable across JVMs, so
I had to exclude them, until I get a better idea on how to test the
resize, without duplicating the actual resizing code.
Changes Copyright (c) 2009 Google
Patch Set 1 #Patch Set 2 : This time with the new file CacheKeyBuilder.java and tests #
Total comments: 16
Patch Set 3 : Updated after review comments. #Patch Set 4 : Reinforces the image resizing tests #Patch Set 5 : Removed stale comment #Patch Set 6 : Intermittent commit increased the diff size, resending. #Patch Set 7 : Readding new files #
Total comments: 18
MessagesTotal messages: 11
|