Best Way To Handle Thumbnail Creation?

Feb 11, 2010

This is a thread looking for advice/comments.I have datalist that has an image in each row. Right now i am just setting the height to a certain height like 75px and this works just fine. Our images are pretty web friendly. But if a user was to have a jpeg that is like 2mb and i change the height I am guessing it still is loading the full 2mb even though the image has "shrunk"?If so what is best way to handle thumbnail creation. I dont want the end user to have to create thumbnail so i was thinking of doing it dynamically if the way I am doing it now is gonna slow down my page.

View 2 Replies


Similar Messages:

AJAX :: ModalPopupExtender With Thumbnail / Thumbnail Can Not See The Full Size Image?

May 21, 2010

I have a ModalPopupExtender control inside accordin control, users can add images, that I sotre the path in database(sql server) and the actual image in physical address inside web server,I automatically resize the image to thumbnail size in C#, when users first connect to the site,the see the thubmnail version of the image,which is much faster to download,and by clicking the thubnail, the hidden asp:pnael is shown with imzge in full size, I use javascript to unhide the panel and also change the image source to actual image,everything works fine in IE, but in Firefox and Chrome, the first time user clicks on thumbnail can not see the full size image,only after couple of time, they see the full size image? what could be the problem?

I am using asp.net ,C# what is the best way to achieve this?

View 3 Replies

Factory Method Pattern Clarification - Allow The Client To Delegates The Product Creation (Instance Creation) To The Subclass

Mar 29, 2010

My understanding of Factory Method Pattern is (Correct me if i am wrong) Factory Method Pattern "Factory Method allow the client to delegates the product creation (Instance Creation) to the subclass". There are two situation in which we can go for creating Factory Method pattern.

(i) When the client is restricted to the product (Instance) creation.

(ii) There are multiple products available.But a decision to be made which product instance need to be returned. If you want to create Abstract Method pattern

You need to have abstract product Concrete Product Factory Method to return the appropriate product.

public enum ORMChoice
{
L2SQL,
EFM,
LS,
Sonic
}
//Abstract Product
public interface IProduct
{
void ProductTaken();
}
//Concrete Product
public class LinqtoSql : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:LinqtoSql");
}
}
//concrete product
public class Subsonic : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:Subsonic");
}
}
//concrete product
public class EntityFramework : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:EntityFramework");
}
}
//concrete product
public class LightSpeed : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken :LightSpeed");
}
}
public class Creator
{
//Factory Method
public IProduct ReturnORTool(ORMChoice choice)
{
switch (choice)
{
case ORMChoice.EFM:return new EntityFramework();
break;
case ORMChoice.L2SQL:return new LinqtoSql();
break;
case ORMChoice.LS:return new LightSpeed();
break;
case ORMChoice.Sonic:return new Subsonic();
break;
default: return null;
}
}
}
**Client**
Button_Click()
{
Creator c = new Creator();
IProduct p = c.ReturnORTool(ORMChoice.L2SQL);
p.ProductTaken();
}

Is my understanding of Factory Method is correct?

View 3 Replies

How To Get The Gallery To Be Viewed As A Thumbnail

Jan 25, 2011

I need the gallery to be viewed as a thumbnail and each pic should be opened in the separate page when clicked .

View 4 Replies

Create Thumbnail Image In C#?

May 11, 2010

I want to display the thumbnail image in grid view from file location . how to generate that of .jpeg file
I am using C# language with asp.net

View 3 Replies

Web Forms :: Generating Thumbnail On The Fly?

Dec 22, 2010

I know that this issue has been raised on so many occasion and I am stuck with two options, one being to create a thumbnail folder whenever a picture is uploaded to the server, here I am using a folder with so many subfolder, upon saving on the server folder, I pass in the subfolder name and the file name, to retrieve the image i need the two parameters but also the resize sizes and as such this measure is almost abosulte.

the other way is to resize on the fly when the user is requesting the picture, this is where I have been stuck on and need some guidance. and here is the code

[Code]....

View 2 Replies

.NET 4 Website Thumbnail Generation?

Feb 14, 2011

I am trying to use the code available here to generate thumbnail images of url's that are returned as part of a search function in my website. Everything works fine when I am running through the development server in Visual Studio 2010, but when I push the code out to the server (Windows Server 2008 64bit w/ IIS 7 running in Integrated Mode) the code never returns a thumbnail. Is there something I need to do to get this working in IIS 7?

View 1 Replies

Web Forms :: Get Thumbnail From Video File

Jan 7, 2010

i need to get thumbnail from video files using C#.

View 1 Replies

Web Forms :: Image Thumbnail Does Not Display

Mar 4, 2011

I have an Image control on my page that should display a thumbnail preview of the actual image. The URL property of this control is assigned through the code-behind using:

imgHolder.URL = @table.Row[0].ItemArray[0].ToString();

Before moving my files to another location, this assignment works fine (The files used to be located inside the application folder). But after moving all files to another drive in the same server, the images don't seem to render any longer. I can upload/download files fine but they just won't display as thumbnails on the page.

View 7 Replies

Display Large Photo From Thumbnail

Feb 17, 2011

I am creating a website where users can upload a profile picture. When a photo is uploaded I am resizing it and generating two new files one for a thumbnail view and one for a large view. Both photos are stored in the same folder and the file names are stored in to two different columns in an SQL table against the users membership account. The two new files use the following naming convention:

Random_name_small.jpg
Random_name_large.jpg

I am then using a grid view with a custom template and an image button to display the Random_name_small.jpg. What I would like to do is when some clicks on this thumbnail photo to then display the associated Random_name_large.jpg. From the SQL select command I am reading both the Random_name_small.jpg and Random_name_large.jpg and then binding Random_name_small.jpg to the image button. Can this be done using the details view or should I be rewriting the code manually to display these images.

View 5 Replies

Web Forms :: HTML To Image Thumbnail?

Apr 16, 2010

Does anyone know a free way of doing this in asp.net?

View 4 Replies

Image Byte Resize As Thumbnail

Aug 12, 2010

I have a working application to save an image file to my sql database (Saves as "Original_Image" in the DB TBL_ImageGallery). I have a file limit on the upload of 1 MB. This also works great and the image is being saved beautifully. I found a bit of an issue. Being i am working on a network with 2 bonded T1 connections the streaming of images to my site, when tested internally, is effortless. I am not sure that this will be the same with a generic bandwidth. I want to store the original image size into the databse (already done) but also store a smaller sized (in bytes not actual size [Width, Height]) to my database in a "ThumbNail" column. This will allow the browser to only have to pass the "Thumbnail" sized image, obviously this needs to be much smaller than the original (ex: 1MB orignal I want to save as 12KB image in the thumbnail column), to the thumbnail img control in the user's interface.

I am not sure if this is possible or if there is a need of third party controls. I am interested in doing this as either a stored procedure or in the C# code on an event fire. There may be a better / other solution to this and if that is the case I am also interested

View 4 Replies

Adding White Space To A Thumbnail?

Jul 26, 2010

In my website, users have the ability to upload images to my website. When the image is uploaded it will automatically have a smaller thumbnail created by my website. The thumbnails are not displaying correctly in my repeater though (and by correctly I mean Im not sure how to display them).

Each image sits inside a square div element which is 145 x 145 pixels. Some of the images are 145 wide with a relative height and some are 145 high with a relative width. When my page is displayed the wider images sit at the bottom of my 145 x 145 div,whereas the higher image sit at the bottom and to the left. I would prefer them to all be centered.

I cant find a way to do this is in CSS becuase the images are retrieved dynamically so I cant assign a height beforehand. Is there a way to add white space to my image during the thumbnail creation process so that all images are 145 x 145 but still maintain the aspect ratio? Or can someone think of a good way to do this with CSS and HTML, OR even with javascript (keeping in mind that my images come inside a repeater bound to data in the db.

If you want to see any of my code or the thumbnail creating class just ask.

View 10 Replies

Get Thumbnail From The Uploaded Flv Video File?

May 28, 2010

is there any method on showing the image for the uploaded video files which are in flv format? i saw all the video in youtube got show the image of the video. how to do it?

View 4 Replies

Web Forms :: Can Implement Thumbnail Like Facebook

Aug 25, 2010

how i can implement thumbnail like facebook?

chose a part of image and show it in profile?

View 3 Replies

Web Forms :: How To Generate A Thumbnail Using Webbrowser

Aug 4, 2010

How can i generate a thumbnail in asp.net using webbrowser?

We are using website thumbnails/screenshots as an asset like MarketingAssetExchange.

View 1 Replies

Web Forms :: Thumbnail Created With Samename?

Aug 2, 2010

i am uploading images in database and creating thumbnails too. but thumbnails has been storing as same name, i cant understand where is the problem, May you pls help me about this, my thumbnail creation code is

protected void Button1_Click(object sender, EventArgs e)
{
try

[code]...

View 1 Replies

Asp.net - Create And Show Multiple Thumbnail In Asp?

May 2, 2010

i want to develop web page in asp(2.0) c#. in this page i want to create and show multiple thiumbnail. for example c:/image and this folder have 5 .jpeg file. when run my web page then show all thumbnail of 5 images without saving thumnails.

View 1 Replies

Web Forms :: Click Thumbnail To Enlarge?

Oct 27, 2010

I've got a series of thumbnail images in a GridView control as well as a Template field for a larger version of the image when the thumbnail is clicked.I'd like to be able to click a thumbnail and update the larger image in the gridview with the appropriate new image.What would be the best (easiest for a newb!) way to do this?I'd like to avoid a whole page refresh and keep it to just the image.

View 4 Replies

Web Forms :: How To Capture Thumbnail From FLV Video

Sep 15, 2012

I am creating a website similar to youtube, so after uploading videos (that will be in .flv format), a thumbnail has to be captured from that corresponding video.. here i am designing my page using asp.net & c#...

I have got  some code from the net, but its working only videos of size 2-3Mb.... how to get my code to work my code for large sized files..

here's my code..

my code in default page(default.aspx.cs)..
its in page load method....

protected void Page_Load(object sender, EventArgs e) {
Class1.GrabSingle_Thumb();
}

code of my class file(class1.cs)...

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;

[CODE].... 

I have got these code from [URL]...

I have two more links, which may be useful, but as a starter in .net, I am not that capable of understanding that code in the page...

[URL]...

[URL]...

View 1 Replies

Web Forms :: Display Images In Thumbnail Format?

Mar 31, 2010

A user will upload the images through FTP in the images folder. So my requirement is when he clicks on the link say for eg [URL] all the images should be displayed in the thumbnail format. What I did is I opened the IIS and over there I selected the directory listing. So when I click on the link [URL] it shows the list of images. But I want this in the thumbnail format.

View 1 Replies

Uploading Pictures / Storing / Displaying As Thumbnail

Aug 3, 2010

I'm a complete novice to ASP.Net embarking on a charity work for a primary school in Africa to create a simple website. The website should have a webpage that users can upload pictures that is stored and displayed as thumbnails. Which can be click on to show the picture in its actual size.

I've used masterpages to create a consistent look across all pages. On the gallery page, I have a textbox and a button which are yet to be programmed.

View 9 Replies

Compress / Thumbnail Image After Uploading File In C#

Jan 23, 2011

I want that suppose user upload 2 MB image then from that image i want to generate 1 thumbnail image.To reduce its size , so i can get speed in loading. as my listing page contains many images.so i am getting to much loading time. SO can you tell me how can i compress image or get Thumbnail image?

View 1 Replies

Web Forms :: Display Image Thumbnail In DataList

Jun 3, 2012

This is code that reduce our image size in page

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:Image ID="Image1" runat="server" ImageUrl = "~/Jellyfish.jpg" Height = "400px" Width = "400px"/>

[Code] ....

I want use it in Data List ... In my datalist i have 3 image that i bind from DB i want reduce this image size how i can do it with this code?

View 1 Replies

Web Forms :: Generate And Display Thumbnail Of Image?

Apr 1, 2012

I have image in my webpage that it has this property  width=250px hight:200 and image size :200KB

i want when i put this image in my page with this Property width:100px and hight:100px    image size Automatically change EX:100KB how i can do it ?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved