I've been researching about my problem for almost a day and a half now, i cant seem to get it to work. I have a multiple image class, that works perfectly and now i also have a function that creates a thumbnail for each uploaded image. I originally set restrictions on the with and height to preserve its format on the design, however the users would like this restriction taken out since they do not know how to resize an image or too lazy to.
So i took out the limit and placed another resize function of the images that the user would upoad. However it brings me to the classic resize bug in a loop here on CI. Im pretty sure i have my codes right, see below