ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

plugin/code to change image url

October 06, 2009 5:33am

Subscribe [1]
  • #1 / Oct 06, 2009 5:33am

    mreeves

    30 posts

    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.jpg

    to

    /phpthumb/phpThumb.php?src=/images/news/dark.jpg&w=205&h=60

    basically 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?

  • #2 / Oct 06, 2009 10:03am

    Will Bolton

    30 posts

    Take a look at David Rencher’s imgsizer plugin: http://www.lumis.com/page/imgsizer/

  • #3 / Oct 06, 2009 10:04am

    mreeves

    30 posts

    I’m afraid David Rencher’s imgsizer plugin does not do what I need.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases