When the user ask for a image that is small or bigger then the original the following things happen:
A. the controller goes on to see if the image exists en needs to be resized
B. In case of a resize the image get resized en stored in the cache folder
But then we get the following Bugs
A. The original image gets displayed for the user
B. The cached image needs to be inserted in the database
C. The asked image link needs to be updated to the cached image
D. The cached image is not resized correctly or not at all (Solved) This is because of the aspect ratio
When the user ask for a image that is small or bigger then the original the following things happen: A. the controller goes on to see if the image exists en needs to be resized B. In case of a resize the image get resized en stored in the cache folder But then we get the following Bugs A. The original image gets displayed for the user B. The cached image needs to be inserted in the database C. The asked image link needs to be updated to the cached image D. The cached image is not resized correctly or not at all (Solved) This is because of the aspect ratio