Changing image size

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lazarus Plath

    #1

    Changing image size

    I've made a gallery that has thumbnails along the top and clicking them
    changes the source for the full size image below, but it seems I can't
    change the image size.

    A workaround I made up is to put the fullsize image tag inside a div
    tag. Clicking a thumbnail changes the innerHTML of the div to an image
    tag with the proper size and source.

    I'm wondering if this is the way to do it or if there's a better, more
    proper way?

    -Laz
  • jmm-list-gn

    #2
    Re: Changing image size

    Lazarus Plath wrote:[color=blue]
    > I've made a gallery that has thumbnails along the top and clicking them
    > changes the source for the full size image below, but it seems I can't
    > change the image size.
    >
    > [...]
    > I'm wondering if this is the way to do it or if there's a better, more
    > proper way?
    >[/color]
    Yes, reduce the image size to thumbnail dimensions. It is a server-side
    operation. Image programs like gd (<http://www.boutell.com/gd/>) do this
    quite well.

    --
    jmm dash list (at) sohnen-moe (dot) com
    (Remove .AXSPAMGN for email)

    Comment

    Working...