Image resampling in VB/ASP.NET

Ask a Question related to ASP.NET General, Design and Development.

  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. Similar Questions and Discussions

    1. resampling and resizing
      If anyone out there could help us out, we would appreciate it. We have a photo of 20"x 13" at 72 dpi. We want to resize it smaller and up the dpi...
    2. How To Browse for an image file and save it to image server folder
      I trying to browse for an image file and save it to the server image folder. in other words , upload the picture. I tried html and aspx.net...
    3. Can I take a small (320x240), blurry image, and make it a clear, large image?
      Just wondering if there is an easy way to do this? I'm sure it won't be perfect cause photoshop can only work with what's there, but maybe it can...
    4. Photoshop 7.0 Sliced Image Causes DreamWeaver MX Table To add 1 Pixel gif image!
      Hello, I sliced my page in Photoshop 7 and did a "Save Optimized" to HTML. I opened the page in Dreamweaver MX and it looks find. I want the TABLE...
    5. 400VC, grain, and resampling!
      Well the first image looks exactly what I saw when viewing the 4000 DPI, 56mb TIF file. The dimensions were approximately 5400x3085. It was very...
  3. #2

    Default Re: Image resampling in VB/ASP.NET


    "Harley" <harleyobrien%40hotmail.com> wrote in message
    news:#5caeeJXDHA.2464@TK2MSFTNGP09.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

  4. #3

    Default Re: Image resampling in VB/ASP.NET


    "Krissy" <krissi___@hotmail.com> wrote in message
    news:3f31e25c$1@quokka.wn.com.au...
    >
    > "Harley" <harleyobrien%40hotmail.com> wrote in message
    > news:#5caeeJXDHA.2464@TK2MSFTNGP09.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

  5. #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.2464@TK2MSFTNGP09.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

Posting Permissions

  • You may not post new threads
  • You may 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