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.Conten tType =
"image/jpeg"; Response.Binary Write(imageCont ent) ), 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 5 1992
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.comwro te in message
news:e9******** ******@TK2MSFTN GP04.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.Conten tType =
"image/jpeg"; Response.Binary Write(imageCont ent) ), 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
"Eliyahu Goldin" <RE************ **************@ mMvVpPsS.orgwro te in
message news:ea******** ******@TK2MSFTN GP03.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
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**@markNOSPA Mrae.netwrote in message
news:OG******** ******@TK2MSFTN GP04.phx.gbl...
"Eliyahu Goldin" <RE************ **************@ mMvVpPsS.orgwro te in
message news:ea******** ******@TK2MSFTN GP03.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
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.publi c.dotnet.framew ork.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.Conten tType
=
"image/jpeg"; Response.Binary Write(imageCont ent) ), 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
"JJ" <ab*@xyz.comwro te in message
news:e9******** ******@TK2MSFTN GP04.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.Conten tType =
"image/jpeg"; Response.Binary Write(imageCont ent) ), 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.
|
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 address this situation.
Where did I go wrong?
|
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 be previewed as thumbnails as well.
Thumbnails are stored in the Thumbs.db hidden file.
There my knowledge ends. I'm asuming that aplications install registry keys somewhere that
register an invocation that returns a thumbnail for a given...
|
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 my items and I can review things at anytime - on the desktop
where I created all this - no problem so far.
I networked the mdb file (only) across to my laptop and found the
pictures don't show. So I guess my database table is only storing links to
|
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 thumbnails.
View the following snapshot to compare the Windows thumbnails (top) to my
ListView thumbnails (bottom):
http://home.san.rr.com/vagabondia/images/tmp/sample.gif
It looks like the Windows thumbnails retain their proportion by, perhaps,
| |
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 thumbnails and then forget about them.
I've seen a lot of samples using a datagrid/list and automatically bind
thumbnails to these controls, but it does not meet my requirements. I've
also seen a sample where the thumbnail of one image is...
|
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 size of a thumbnail and set the sizemode
to Stretch -- I get one thumbnail. I want to retrieve all the picture files
(jpg, bmp) in a directory into an array list and then display this list as
thumbnails on my form dynamically. So my question is...
|
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 this create an unacceptable security hazard?
TTFN
Barely
|
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 in this thumbnails displayed in grid the orginal image is shown in a pop-up. now i hav succeded in creating thumbnails from uploaded images pls any one help me how to bind these thumbnails in gridview by storing it in a folder..
thanks a lot for...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |