need help resizing pictures

Discussion in 'Classic ASP' started by eurovw, Oct 29, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. can anyone show me an example how to resize pictures using a object component?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Check out aspUpload's site. It has some example on how to use ASPUload to resize

    quote:Originally posted by eurovw

    can anyone show me an example how to resize pictures using a object component?
    </blockquote id="quote"></font id="quote">
     
  3. Yes I know, but it requires ASPJpeg component, which you don't provide. Any other solutions, an example of ASPImage component?
    thanks
     
  4. Bruce

    Bruce DiscountASP.NET Staff

  5. Just a late note:

    If you download the evaluation version on their site:

    http://www.serverobjects.com/products.htm#aspimage

    you can then simply unzip it and they provide you with a bunch of examples you can look at.

    And here's some resize example code:

    dim Image, intImageWidth, intImageHeight

    'change 350 to your desired sizes
    intImageWidth = 350
    intImageHeight = 350

    Set Image = Server.CreateObject("AspImage.Image")
    Image.AutoSize = true
    Image.LoadImage("actual path to your picture in here")
    Image.ResizeR intImageWidth, intImageHeight
    Image.FileName = ("actual path to your picture in here")
    Image.SaveImage
    Set Image = nothing
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page