473,503 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Making Thumbnails

Hi all

I posted this on vb.contols but the group does not seem to be as active as
this one.

Using VB2005

I have a Web page that I am trying to load images as thumbnails. At present
I am using this code which is just loading a small view of the main image
also I presume using the same amount of memory and download time, the images
are 856K+ on disk, please correct me if I am wrong.

img1.ImageUrl = "/thumbs/001.jpg"

img1 is an Image control placed on the aspx page
<asp:Image ID="img1" runat="server" />

I have tried to follow the MSDN code for creating thumbnails and all I get
is a message telling me that a "System.Drawing.Image cannot be converted to
a System.Web.UI.WebControls.Image".

What would be the recommended way of creating a thumbnail for the aspx page,
any advice or comments on this subject would be welcomed.

Thanks in advance

Dave Griffiths

Sep 9 '07 #1
2 1303
Theres a lot of example around to how how to do this in asp.net.

Heres a VB one to get you over your current hurdle
http://www.developer.com/net/asp/article.php/3098311

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog
"David Griffiths" <da*****@yahoo.nospam.co.ukwrote in message
news:a9*********************@telenor.com...
Hi all

I posted this on vb.contols but the group does not seem to be as active as
this one.

Using VB2005

I have a Web page that I am trying to load images as thumbnails. At
present
I am using this code which is just loading a small view of the main image
also I presume using the same amount of memory and download time, the
images
are 856K+ on disk, please correct me if I am wrong.

img1.ImageUrl = "/thumbs/001.jpg"

img1 is an Image control placed on the aspx page
<asp:Image ID="img1" runat="server" />

I have tried to follow the MSDN code for creating thumbnails and all I get
is a message telling me that a "System.Drawing.Image cannot be converted
to
a System.Web.UI.WebControls.Image".

What would be the recommended way of creating a thumbnail for the aspx
page,
any advice or comments on this subject would be welcomed.

Thanks in advance

Dave Griffiths

Sep 9 '07 #2
Hi,

An old sample from me.

http://groups.google.com/group/micro...cca34dc?hl=en&

Cor

"David Griffiths" <da*****@yahoo.nospam.co.ukschreef in bericht
news:a9*********************@telenor.com...
Hi all

I posted this on vb.contols but the group does not seem to be as active as
this one.

Using VB2005

I have a Web page that I am trying to load images as thumbnails. At
present
I am using this code which is just loading a small view of the main image
also I presume using the same amount of memory and download time, the
images
are 856K+ on disk, please correct me if I am wrong.

img1.ImageUrl = "/thumbs/001.jpg"

img1 is an Image control placed on the aspx page
<asp:Image ID="img1" runat="server" />

I have tried to follow the MSDN code for creating thumbnails and all I get
is a message telling me that a "System.Drawing.Image cannot be converted
to
a System.Web.UI.WebControls.Image".

What would be the recommended way of creating a thumbnail for the aspx
page,
any advice or comments on this subject would be welcomed.

Thanks in advance

Dave Griffiths
Sep 10 '07 #3

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

Similar topics

5
5184
by: Lemming | last post by:
Hi, I'm putting together a website for a local estate agent. One of the things they want to do is upload property descriptions/prices/etc. plus a picture of the property which is for sale.
4
2714
by: no | last post by:
I'm using PHP with GD2 to create image thumbnails, but it gets extremely slow when processing large images (1600x1200 or more). I had to raise max_execution_time to more than 120 secs and I don't...
5
3660
by: Ken | last post by:
I am in the process of designing my first web-site, and am having a problem with my picture gallery. My thumbnails are all different sizes, I would like them to be one size. The manual does not...
3
11389
by: Vagabond Software | last post by:
I'm trying to display thumbnail images in a Listview that look more like the Windows thumbnail view. Everything is working pretty good, but my thumbnails are decidedly not like the Windows...
6
4729
by: Rich | last post by:
Hello, I want to simulate the dynamic thumbnail display of Windows Explorer (winxp) on a form or pannel container. If I place a picture box on my container form/pannel and dimension it to the...
4
1748
by: Barely Audible | last post by:
Guys I was wondering if it was possible to have a js file that, when the page loaded, it automatically generated a a set of thumbnails from directory of the page on the web server? Or would...
5
1970
by: JJ | last post by:
I have a gallery-like application. (The gallery will be actually presented in Flash, but the management (cms) of the images will be in asp.net. ) My question is, is it ok to create Thumbnail...
1
1141
by: iswar | last post by:
hi friends asp.net(2.0) c# i am trying to create an image gallery in which all the uploaded image are converted into thumbnails and i want to bind these thumbnails into gridview. and on clicking...
8
2323
by: The Natural Philosopher | last post by:
I have a databse containing amongst other things many images stored as BLOBS. When listing, currently I download all the images full size and let he browser do the reduction to thumbnails. ...
0
7198
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
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7271
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
7319
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
7449
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
5570
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
4666
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...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.