ASP Image Control

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

    ASP Image Control

    Hi

    I use the image controls to show images but it distorts the image if the
    image dimensions are different to the image itself

    Thank you,
    Samuel


  • randy.buchholz

    #2
    Re: ASP Image Control

    As it should.

    "Samuel" <samuel.shulman @ntlworld.comwr ote in message
    news:OvkniVL8IH A.5164@TK2MSFTN GP02.phx.gbl...
    Hi
    >
    I use the image controls to show images but it distorts the image if the
    image dimensions are different to the image itself
    >
    Thank you,
    Samuel
    >

    Comment

    • Cowboy \(Gregory A. Beamer\)

      #3
      Re: ASP Image Control

      That is normal. When you change pixel size, the image has to be interpolated
      in the browser.

      There are technologies, like deep zoom, that allow zooming in and out
      without degredation, but they require multiple images to do this.

      --
      Gregory A. Beamer
      MVP, MCP: +I, SE, SD, DBA

      Subscribe to my blog


      or just read it:


      *************** *************** **************
      | Think outside the box! |
      *************** *************** **************
      "Samuel" <samuel.shulman @ntlworld.comwr ote in message
      news:OvkniVL8IH A.5164@TK2MSFTN GP02.phx.gbl...
      Hi
      >
      I use the image controls to show images but it distorts the image if the
      image dimensions are different to the image itself
      >
      Thank you,
      Samuel
      >

      Comment

      • Samuel

        #4
        Re: ASP Image Control

        So what does everyone do when they have to show images of different
        proportional dimensions


        "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld @comcast.netNoS pamMwrote in
        message news:uUe75vL8IH A.2348@TK2MSFTN GP06.phx.gbl...
        That is normal. When you change pixel size, the image has to be
        interpolated in the browser.
        >
        There are technologies, like deep zoom, that allow zooming in and out
        without degredation, but they require multiple images to do this.
        >
        --
        Gregory A. Beamer
        MVP, MCP: +I, SE, SD, DBA
        >
        Subscribe to my blog

        >
        or just read it:

        >
        *************** *************** **************
        | Think outside the box! |
        *************** *************** **************
        "Samuel" <samuel.shulman @ntlworld.comwr ote in message
        news:OvkniVL8IH A.5164@TK2MSFTN GP02.phx.gbl...
        >Hi
        >>
        >I use the image controls to show images but it distorts the image if the
        >image dimensions are different to the image itself
        >>
        >Thank you,
        >Samuel
        >>
        >

        Comment

        • Hans Kesting

          #5
          Re: ASP Image Control

          Samuel submitted this idea :
          So what does everyone do when they have to show images of different
          proportional dimensions
          >
          A few ways:

          * Do NOT specify height and width - leave it to the browser to display
          the full image in the correct dimensions.

          * Change the image server-side so you can proportionately rescale it.
          Then you can have both a (calculated) thumbnail and the full-size
          image.

          * Calculate a width so it is in proportion to your height for this
          particular image and let the browser rescale the image (or calculate
          height from width). That means a lot of work for the browser: download
          the full (possibly large) image, and then rescale it to display a
          thumbnail)

          Hans Kesting


          Comment

          • Samuel

            #6
            Re: ASP Image Control

            Thank you


            "Hans Kesting" <news.hansdk@sp amgourmet.comwr ote in message
            news:%23ZW%23h$ L8IHA.3624@TK2M SFTNGP05.phx.gb l...
            Samuel submitted this idea :
            >So what does everyone do when they have to show images of different
            >proportional dimensions
            >>
            >
            A few ways:
            >
            * Do NOT specify height and width - leave it to the browser to display the
            full image in the correct dimensions.
            >
            * Change the image server-side so you can proportionately rescale it. Then
            you can have both a (calculated) thumbnail and the full-size image.
            >
            * Calculate a width so it is in proportion to your height for this
            particular image and let the browser rescale the image (or calculate
            height from width). That means a lot of work for the browser: download the
            full (possibly large) image, and then rescale it to display a thumbnail)
            >
            Hans Kesting
            >
            >

            Comment

            • Cowboy \(Gregory A. Beamer\)

              #7
              Re: ASP Image Control

              One thing you can do is to get the dimensions as you show the image and
              adjust the image tag accordingly. This means you need enough space for the
              largest image.

              If you do not want to query the image every time, you can store it when the
              image is uploaded.

              --
              Gregory A. Beamer
              MVP, MCP: +I, SE, SD, DBA

              Subscribe to my blog


              or just read it:


              *************** *************** **************
              | Think outside the box! |
              *************** *************** **************
              "Samuel" <samuel.shulman @ntlworld.comwr ote in message
              news:eCj7u6L8IH A.2324@TK2MSFTN GP02.phx.gbl...
              So what does everyone do when they have to show images of different
              proportional dimensions
              >
              >
              "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld @comcast.netNoS pamMwrote in
              message news:uUe75vL8IH A.2348@TK2MSFTN GP06.phx.gbl...
              >That is normal. When you change pixel size, the image has to be
              >interpolated in the browser.
              >>
              >There are technologies, like deep zoom, that allow zooming in and out
              >without degredation, but they require multiple images to do this.
              >>
              >--
              >Gregory A. Beamer
              >MVP, MCP: +I, SE, SD, DBA
              >>
              >Subscribe to my blog
              >http://gregorybeamer.spaces.live.com/lists/feed.rss
              >>
              >or just read it:
              >http://gregorybeamer.spaces.live.com/
              >>
              >************** *************** ***************
              >| Think outside the box! |
              >************** *************** ***************
              >"Samuel" <samuel.shulman @ntlworld.comwr ote in message
              >news:OvkniVL8I HA.5164@TK2MSFT NGP02.phx.gbl.. .
              >>Hi
              >>>
              >>I use the image controls to show images but it distorts the image if the
              >>image dimensions are different to the image itself
              >>>
              >>Thank you,
              >>Samuel
              >>>
              >>
              >
              >

              Comment

              Working...