Click here to Skip to main content
15,881,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
which type of images suits best for a asp.net project
from performance point of view

which is used in asp.net project in 2003 server hosting
Posted

Really depends on what you use them for. For example, JPEG is good for storing lossy photographs of real life objects (e.g., trees and scenery and cars and so on). PNG is the best option for losslessy compressing computer-generated images (e.g., screenshots). GIF is good for animations and for transparency (PNG supports transparency, but that doesn't work in all browsers). BMP would only rarely be useful. For example, if you were building some JavaScript function to modify the image as it is uploaded, then you might want to go with BMP, as it is the simplest format (i.e., you could inspect the bytes in the file manually without much trouble).

For typically use cases, JPEG and PNG are the major contenders, with JPEG being the most common. Though, there are exceptions. Take Code Project for example. Most articles contain screenhots and it irks me when I see them JPEG compressed when they would both look better and use less space if they were PNG's.
 
Share this answer
 
The smallest ones, so probably jpg. Common sense, really.
 
Share this answer
 
If it's the performance that you are looking at then as CG told, smallest size one. Though even if you have image in another format than *.jpg (size little higer), not an issue, you can enable the image caching on the server. This would nullify the size factor after first download! (First download would take time!)
 
Share this answer
 
Sure Jpeg is best for Photos, Drawings, Flowcharts. Then for style effects you can use Gif. For example if you want to make style effects with images you can use .GIF images with CSS style background-repeat property.

You can make styles with small images like 1kb.
sample code

CSS
.menubutton
{
  background-image: url(../images/btnback.gif);
  background-repeat: repeat-x;
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900