see also Mosimage Hack
mosimage hack : dynamic resize
# Dynamic Content Images .. content.html.php hack
#
# purpose:
# dynamically serve jpg images in content to reduce page load time
# for the browser. Dramatically improves speed if the images stored in /images/stories
# are large pixel/file size but are relatively small pixel size on the page.
#
# advantages:
# - faster pages with jpg images (less data is served), particularly noticable on low
# bandwidth connections.
# - content contributors only need to upload a single copy of the image to /images/stories
# and don't need to be too concerned about the pixel/file size.
#
# disadvantages:
# - if jpgs are served dynamically the browser can't cache them, therefore page reloads
# will be slower.
# - increased webserver load, so don't upload images too large!!
#
# implementation:
# added function pagecontentdisplay($contents)and changed 'echo $contents;'
# to 'pagecontentdisplay($contents);' so that content is passed through
# pagecontentdisplay before being served. pagecontentdisplay finds all <img ...>
# containers whose source is a jpg and conditionally modifies them so that 'src='
# calls servephoto.php which dynamically serves the jpg constrained to the size
# defined by the 'style='.
# Dynamic jpg serving can be overridden by prepending 'cache#' to the alt string.
# eg 'alt="cache#your alt text"
#
# installation:
# replace /components/com_content/content.html.php with this one.
# requires servephoto.php in the mambo top level directory. This is the same servephoto.php
# that is used with my mosimage hack. This content.html.php hack is compatible with my mosimage hack.
# I recommend installing both hacks. I have done limited testing of this hack without the mosimage hack,
# and it appears to work.
#
####################################