First of all you should create your own implementation of BitmapProcessor
.
If you want to process images before saving into disc cache then use ImageLoaderConfiguration..discCacheExtraOptions(..., processor)
.
Processing will be executed for every image before saving on disk.
If you want to process images before saving into memory cache then use DisplayImageOptions.preProcessor(processor)
.
Processing will be executed for tasks which will got options with this processor.