I intend on using a wysiwyg editor which allows user to upload photos and set the width and height of the image displayed on the site. Unfortuantley the wysiwyg editor doesn’t provide a way to resize the images. So for example a user may upload a photo that is 1024x768 pixels and 1mb in file size. Now if they change the width and height to something smaller people viewing the article with the image in are still downloading the 1mb file.
What I would like to do is change the image code inserted from, for example:
/images/news/dark.jpgto
/phpthumb/phpThumb.php?src=/images/news/dark.jpg&w=205&h=60basically changing the image src by preceeding it with “/phpthumb/phpThumb.php?src=” and adding in the width and height into that src url based on the width and height inputted into the wysiwyg popup.
Is there a plugin that I could wrap around my body text that would modify all the image tags within?