473,409 Members | 1,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,409 software developers and data experts.

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.
Nov 17 '05 #1
3 2451

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

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

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 http://aspalliance.com/chrisg/default.asp?article=152 for more info.
Nov 17 '05 #2

"Krissy" <kr*******@hotmail.com> wrote in message
news:3f********@quokka.wn.com.au...

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

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

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 http://aspalliance.com/chrisg/default.asp?article=152 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 :)
Nov 17 '05 #3
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
http://www.takempis.com
Complex things are made up of
lots of simple things.

"Harley" <harleyobrien%40hotmail.com> wrote in message
news:%2****************@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.

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andrew Crowe | last post by:
Hi guys, We've got a content management system in PHP that allows users to upload images that are resized and sharpened. The resizing is done using the GD libraries resampling function and to...
1
by: alexandre damiron | last post by:
That function: function resizeImage($defsize,$newsize,$dX,$dY,$bgcolor,$newname,$fileformat,$fQuality) { $firstimage = imagecreate($defsize,$defsize); imagecolorallocate($firstimage, $bgcolor,...
2
by: Faree | last post by:
Hi, I am a PHP Developer.can any one help me on image upload and display of that image.what i want is uploading an image to a directory ,displaying of that image as a thumbnail.when i...
5
by: Frecklefoot | last post by:
I'm using DrawImage() to copy one image onto another, larger one. I'm using a DrawImage() overload to stretch the source image onto the destination. The problem is that when it draws the stretched...
2
by: Bob Bedford | last post by:
I've an image that is 300x225 pixels. I've to send this image to mobile phones using the mms. For this the best result is given using 120x160 pixels. So I may generate a 120 pixels large image,...
7
by: bcutting | last post by:
I am looking for a way to take a large number of images and find matches among them. These images may not be exact replicas. Images may have been resized, cropped, faded, color corrected, etc. ...
6
by: evolozik | last post by:
hi everyone i need some help please i am using PHP5 and i used a tutorial and when i copied the code for Resampling an image proportionally, it worked perfectly but when i added it in my page it...
8
by: berkshire | last post by:
Hi, Anyone know of a script out there that can resize images and not sacrifice image quality? I've been using phpthumb (http://phpthumb.sourceforge.net/) but when compared to an image resized...
7
by: xx75vulcan | last post by:
Hi, I've got a PHP Upload Form that works great, unless that is, the image your uploading has been modified through a photo editing software. Example: if I upload the image straight from a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.