I am working on a CMS and I am trying to figure out common practice for performing a REST style image request. I have three sizes, small, medium and full. My thought is to save only the full text and write a function that will resize each request per page. This has obvious processor costs. The other end is that I can store all three sizes and only calculate at boot time, this seems to be empty space.
My environment is an intranet, so there are relatively low requests and a large number of saved images. Thoughts?
Note. I understand that I don’t need to worry too much, as it’s an intranet, and any solution will work just by wondering what would be preferable for the sake of knowledge.
source
share