I do something similar, but with Image->cachedFilename(). Maybe you can implement your functionality there.
https://github.com/JayDevlin/silverstripe-module-rsimage (branch 2.4)
Posted to: Extend/Decorate getFormattedImage (Image class) | Show Thread | Post Reply