473,385 Members | 1,400 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,385 software developers and data experts.

Thumbnails

JJ
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 images on the fly by resizing
the original sending it to the output stream (i.e. Response.ContentType =
"image/jpeg"; Response.BinaryWrite(imageContent) ), or best to actually save
the thumbnails to disk.

Would this method result in a much slower displaying of thumbnails?

Keep in mind that several thumbnails will be displayed on one page (in
flash, but not sure if thats relevent).

I am trying to avoid the headache of saving thumbnails and managing their
deletion etc.

JJ
Nov 1 '07 #1
5 1960
I can't see how sending to the output stream can be slower than rendering
files. When you point url to a file, someone on the server site will need to
open the file an put the content in the http response.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"JJ" <ab*@xyz.comwrote in message
news:e9**************@TK2MSFTNGP04.phx.gbl...
>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 images on the fly by resizing
the original sending it to the output stream (i.e. Response.ContentType =
"image/jpeg"; Response.BinaryWrite(imageContent) ), or best to actually
save the thumbnails to disk.

Would this method result in a much slower displaying of thumbnails?

Keep in mind that several thumbnails will be displayed on one page (in
flash, but not sure if thats relevent).

I am trying to avoid the headache of saving thumbnails and managing their
deletion etc.

JJ

Nov 1 '07 #2
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:ea**************@TK2MSFTNGP03.phx.gbl...
>I can't see how sending to the output stream can be slower than rendering
files. When you point url to a file, someone on the server site will need
to open the file an put the content in the http response.
I believe the OP was asking whether the extra overhead in creating the
thumbnails on the fly as and when they are needed would be significant
enough to make it worth actually storing the thumbnails themselves as
separate JPEGs on the server's file system, especially since Flash is
involved...

I'm afraid I don't know the answer...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 1 '07 #3
JJ
I guess I am comparing the creation of a (high quality) thumbnail each time,
against opening a pre-created file of the same size.
I don't _think_ the flash will change things here. It could just as well be
a browser accessing the files. Flash will just be given the urls (whether
that is a handler url or an actual file url is the question). It sounds as
though there isn't any obvious rule saying that using one or the other is
much slower...

A handler removes the headache of trying to manage thumbnails, but would it
be ok to server say 40 images to a single web page. I would have thought so,
but wonder if there is a bottleneck of any sorts here?

JJ

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:OG**************@TK2MSFTNGP04.phx.gbl...
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:ea**************@TK2MSFTNGP03.phx.gbl...
>>I can't see how sending to the output stream can be slower than rendering
files. When you point url to a file, someone on the server site will need
to open the file an put the content in the http response.

I believe the OP was asking whether the extra overhead in creating the
thumbnails on the fly as and when they are needed would be significant
enough to make it worth actually storing the thumbnails themselves as
separate JPEGs on the server's file system, especially since Flash is
involved...

I'm afraid I don't know the answer...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 1 '07 #4
You could server side cache the results and reduce the number of times
you actually create the thumbs. But, there will be a performance hit
(although I doubt anyone will really see it) when it does create the
thumb.

-----Original Message-----
From: JJ [mailto:ab*@xyz.com]
Posted At: Thursday, November 01, 2007 5:44 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Thumbnails
Subject: Thumbnails

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 images on the fly by
resizing
the original sending it to the output stream (i.e. Response.ContentType
=
"image/jpeg"; Response.BinaryWrite(imageContent) ), or best to actually
save
the thumbnails to disk.

Would this method result in a much slower displaying of thumbnails?

Keep in mind that several thumbnails will be displayed on one page (in
flash, but not sure if thats relevent).

I am trying to avoid the headache of saving thumbnails and managing
their
deletion etc.

JJ
Nov 1 '07 #5

"JJ" <ab*@xyz.comwrote in message
news:e9**************@TK2MSFTNGP04.phx.gbl...
>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 images on the fly by resizing
the original sending it to the output stream (i.e. Response.ContentType =
"image/jpeg"; Response.BinaryWrite(imageContent) ), or best to actually
save the thumbnails to disk.

Would this method result in a much slower displaying of thumbnails?

Keep in mind that several thumbnails will be displayed on one page (in
flash, but not sure if thats relevent).

I am trying to avoid the headache of saving thumbnails and managing their
deletion etc.

JJ
I did an app which allowed browsing of a folder of subfolders of images.
The pages presented showed dynamically created thumbnails.

The app would check to see if a subfolder named thumbs existed and if not
would then create the folder and required thumbnails on the go. If the
subfolder existed it would only create thumbnails for those files which were
new and did not have corresponding thumbnails. All the overhead of creating
the folder, the thumbnails was only noticed when a user would ask for a page
size of 20 to 30. Numbers under that were not noticable and number above
that were slow enough that the overhead was not a factor.

LS

Nov 1 '07 #6

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

Similar topics

5
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.
5
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...
6
by: c d saunter | last post by:
Greetings All, In Widows Explorer there is a thumbnail view, where you see images as thumbnails. Applications such as MS Office and OpenOffice, when installed, cause their respective filetypes to...
4
by: Rednelle | last post by:
Greetings all, As a newbie, using Access 2000, I would appreciate advice on the best way to include pictures. I have developed a 'Home Inventory' database which can include jpeg thumbnails of...
3
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...
1
by: Espen Evje | last post by:
Hi, I am trying to present the images in a folder as thumbnails in a dynamically created asp:table. I however do not want to save the thumbnails to disk, only show the images in this folder as...
6
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
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...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.