I have a pages with different post/placement types. This placements having different dimension of images. Same posts, different image dimensions.
An example;
Homepage : Featured 600*400 Left side of featured 300*200 Bottom of featured 200*150 Other articles 150*100 Article Detail : Detail page 600*400 Maybe different sizes for category views...
Which way is the best way for showing this images ?
Pros : We can use articles in all homepage places
Cons : This way uses more storage.
Pros : Less storage use. Less files. Short process time.
Cons : When we want to change place of article, we need to re-process original image for new dimensions. We must map placements and dimensions. Also re-processing time needed.
Pros : We can use articles in all homepage places, images resized if you need to show.
Cons : Browser hits to script for showing image. Not to file. It may increases CPU usage and more slower than other ways.
Process once, show multiple times. Storage is incredibly cheap and shouldn't be an implication when developing small web apps anymore.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.