I am utilizing a custom area to choose an image's url.

My client is placing and uploading all of the image which means this must be rather easy. For this reason I am attempting to handle it behind the scene.

The issue I have encounter is I've within the link to the entire size image that is really slowing down lower load time.

It is possible to way I'm able to place a thumbnail or any other image size in line with the full-sized url?

I have attempted this which kind of works the main problem I am getting is a few images not have the same dentition, which means this must be done more dynamical.

<? $reduceimage = str_replace('.jpg', '-330x220.jpg' , $defaultimage); ?>