totocaster/TCImageView — Issue #2: Change caching from JPEG to PNG
Author: OmarPedraza
Created: 2011-12-26 10:26:02+00:00
State: open

Sometimes we retrieve images in PNG format instead JPEG and we need to cache this images but TCImageView still does not offer us this possibility.

A client demanded me this behavior so I started to think how about how I could modify TCImageView so that I could achieve that behavior and I found that caching all images in PNG will work for both JPEG and PNG images with only a low memory charge increase. In order to do that, I changed two lines in TCImageView.m in order to accomplished this new kind of caching, do you consider that change would be an improvement to TCImageView?