Professional Web Applications Themes

Image resampling in VB/ASP.NET - ASP.NET General

is there any way to manipulate images in vb.net in asp.net? i have a 280x280pixel jpg file, and want to display it in 2 sizes, 280x280 and 70x70... without having to create 2 files... (actually there are some 100s files, dont want to duplicate them...) any way to use an image class or something to resample the image and get the stream as a jpg file displayed on an aspx file? i know there were com components for ASP to do this, like ASPImage, but cannot install custom components on my server....

  1. #1

    Default Image resampling in VB/ASP.NET

    is there any way to manipulate images in vb.net in asp.net?
    i have a 280x280pixel jpg file, and want to display it in 2 sizes, 280x280
    and 70x70... without having to create 2 files... (actually there are some
    100s files, dont want to duplicate them...)
    any way to use an image class or something to resample the image and get the
    stream as a jpg file displayed on an aspx file?
    i know there were com components for ASP to do this, like ASPImage, but
    cannot install custom components on my server.


    Harley Guest

  2. #2

    Default Re: Image resampling in VB/ASP.NET


    "Harley" <harleyobrien%40hotmail.com> wrote in message
    news:#5caeeJXDHA.2464TK2MSFTNGP09.phx.gbl...
    > is there any way to manipulate images in vb.net in asp.net?
    > i have a 280x280pixel jpg file, and want to display it in 2 sizes, 280x280
    > and 70x70... without having to create 2 files... (actually there are some
    > 100s files, dont want to duplicate them...)
    > any way to use an image class or something to resample the image and get
    the
    > stream as a jpg file displayed on an aspx file?
    > i know there were com components for ASP to do this, like ASPImage, but
    > cannot install custom components on my server.
    >
    >
    You probably want something like this:

    [url]http://aspalliance.com/chrisg/default.asp?article=130[/url]

    Use the single thumbnail browser and adapt to code to take in parameters for
    the sizes you want.

    I used something similar for a photo gallery site, it works fine and the
    images look really good :)

    But be careful with .bmp and .png files, they can have problems displaying
    on a page.

    See [url]http://aspalliance.com/chrisg/default.asp?article=152[/url] for more info.


    Krissy Guest

  3. #3

    Default Re: Image resampling in VB/ASP.NET


    "Krissy" <krissi___hotmail.com> wrote in message
    news:3f31e25c$1quokka.wn.com.au...
    >
    > "Harley" <harleyobrien%40hotmail.com> wrote in message
    > news:#5caeeJXDHA.2464TK2MSFTNGP09.phx.gbl...
    > > is there any way to manipulate images in vb.net in asp.net?
    > > i have a 280x280pixel jpg file, and want to display it in 2 sizes,
    280x280
    > > and 70x70... without having to create 2 files... (actually there are
    some
    > > 100s files, dont want to duplicate them...)
    > > any way to use an image class or something to resample the image and get
    > the
    > > stream as a jpg file displayed on an aspx file?
    > > i know there were com components for ASP to do this, like ASPImage, but
    > > cannot install custom components on my server.
    > >
    > >
    >
    > You probably want something like this:
    >
    > [url]http://aspalliance.com/chrisg/default.asp?article=130[/url]
    >
    > Use the single thumbnail browser and adapt to code to take in parameters
    for
    > the sizes you want.
    >
    > I used something similar for a photo gallery site, it works fine and the
    > images look really good :)
    >
    > But be careful with .bmp and .png files, they can have problems displaying
    > on a page.
    >
    > See [url]http://aspalliance.com/chrisg/default.asp?article=152[/url] for more info.
    >
    >
    On a side note I was initially using an image component, but stopped as the
    company never replied to our emails about the product, so a bit of searching
    around saved us $500 for a component by doing the coding ourselves :)


    Krissy Guest

  4. #4

    Default Re: Image resampling in VB/ASP.NET

    You can do anything with ASP.Net that you can do with any other programming
    technology. To manipulate images, use the System.Drawing namespace.

    --
    HTH,

    Kevin Spencer
    Microsoft MVP
    ..Net Developer
    [url]http://www.takempis.com[/url]
    Complex things are made up of
    lots of simple things.

    "Harley" <harleyobrien%40hotmail.com> wrote in message
    news:%235caeeJXDHA.2464TK2MSFTNGP09.phx.gbl...
    > is there any way to manipulate images in vb.net in asp.net?
    > i have a 280x280pixel jpg file, and want to display it in 2 sizes, 280x280
    > and 70x70... without having to create 2 files... (actually there are some
    > 100s files, dont want to duplicate them...)
    > any way to use an image class or something to resample the image and get
    the
    > stream as a jpg file displayed on an aspx file?
    > i know there were com components for ASP to do this, like ASPImage, but
    > cannot install custom components on my server.
    >
    >

    Kevin Spencer Guest

Similar Threads

  1. resampling and resizing
    By aaa in forum Adobe Photoshop Mac CS, CS2 & CS3
    Replies: 0
    Last Post: April 21st, 03:49 AM
  2. determine image information on image stored in MySQL BLOB
    By kristofl in forum PHP Development
    Replies: 2
    Last Post: October 4th, 01:22 PM
  3. Can I take a small (320x240), blurry image, and make it a clear, large image?
    By Mike521 in forum Adobe Photoshop & Illustrator
    Replies: 5
    Last Post: July 10th, 03:34 AM
  4. Photoshop 7.0 Sliced Image Causes DreamWeaver MX Table To add 1 Pixel gif image!
    By Richard Crane in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 1
    Last Post: July 7th, 08:30 PM
  5. 400VC, grain, and resampling!
    By Mike Marty in forum Photography
    Replies: 1
    Last Post: July 1st, 05:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139