I have two questions, please.
My images are currently loading with the following declaration:
<img src="https://www.xxxxxx.com/presenters/images/user_<?php echo($rsPresentersListing->getColumnVal("ID")) ; ?>/<?php echo($rsPresentersListing->getColumnVal("ThumbImage")); ?>" style="width: 122px; height: auto; background-size: contain; float: left; margin-right: 1em;" alt="pic of <?php echo($rsPresentersListing->getColumnVal("First")); ?> <?php echo($rsPresentersListing->getColumnVal("Last")); ?> coming soon!" />
FIRST QUESTION: What condition should I put for the if (TRUE) condition that ImageResizer requests? Should this be to check if the file exists in cache, and then if not to use the above whereas if it does, to reference the cache directory and get it there?
SECOND QUESTION: Would it in fact be better to place an ImageResizer routine at the head of the page and check for the existence of the necessary files before loading, and create any requred ones for its cache that do not exist, and create them then? So I would do a check for the relevant file for all Presenters in the cache, and create any missing ones before proceeding? And so that they are all ready to be placed?
My pages are in fact now loading with the correct images and etc., But they of course are taking an inordinately time to load if the browser does not have them in its cache. At least I no longer have cut off heads, etc.
Thank you, as ever, for your help and kindness.