I need to use a picture which its original size is 375 x 375 pixel in 4 different sizes (375 x 375, 200 x 200, 160 x 160 and 90 x 90 pixel) in my own website.
If i want to make my website image optimize, should i make four different folder for each size and put the picture with their own size in that folder!? Or is there better way?
Right now i'm using this code which i know this is not correct for image optimize
$(this).data({'image': thumbImage, 'zoom-image': zoomImage}).find('img').css({'width': '90px', 'height': 'auto'});