Announcement

Collapse
No announcement yet.

ASP question displaying jpg's

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    ASP question displaying jpg's

    Hi folks - sorry if this is in the wrong section...

    I need to understand how, if I can, get a jpg that is 320X240 to display properly using the following statement....

    PHP Code:
     Response.Write "<IFRAME width='AAA' height=BBB' src='http://x.x.x.x/picture.jpg' frameborder='no' scrolling='no'></IFRAME>" 

    I want AAA and BBB to be something different... such that the jpg resiszes when displayed rather than gets choped... that is a poor description of what I want!

    The bottom line is I want to display four images across the screen, and the native res of the sources is 320X240, on a typically 1024*768 res viewing screen... hope that makes sense!

    DJ
    Last edited by Bestgear; November 24, 2006, 06:26 PM.
    ---------------------------------------------------http://weather.penicuik.org

    #2
    You may need to expand on what you mean by "display properly". A 320x240 frame is probably "display properly" when displayed at 320x240. Displaying at a differing size may significantly reduce the quality of the image.
    Why I like my 2005 rio yellow Honda S2000 with the top down, and more!

    Comment


      #3
      Hi - thanks for the reply...


      I kinda thought I had not really asked for what I wanted... its not easy to find the words!

      AND... getting that line of code in the posting without it treating it as code to run took me 6 edits!
      Basically, I am trying to get a simple asp page to display my 16 cameras hosted on a geovision server.

      Geovision serves these up at 320*240 and I wanted to display them on a page 4 across, so that means the native resolution does not fit on the target 1024*768 display.

      I hope that explains why I want to "downsize" the jpg's for display....

      DJ
      ---------------------------------------------------http://weather.penicuik.org

      Comment


        #4
        In the multi pix page, you may want to try using 160x120 for the display size of each pix. If the frames are being captured at 320x240 by the capture software, the quality should still be good. Then if you wanted to display an individual pix at 320x240 for a closer look, the quality would still be as captured at 320x240.
        Why I like my 2005 rio yellow Honda S2000 with the top down, and more!

        Comment


          #5
          Thanks for the reply...

          So - how do I code to display a 320*240 jpg in 160*120?

          DJ
          ---------------------------------------------------http://weather.penicuik.org

          Comment


            #6
            Try this:

            PHP Code:
            <img src="photo.jpg" width="160" height="120" 

            Comment


              #7
              Take a look at Photos.zip in this post:

              http://board.homeseer.com/showthread.php?t=95559

              Allows you to display multiple web cam images as thumbnails - If you click on a picture you get the full size shown.
              Jon

              Comment

              Working...
              X