LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   What is the best file size for pics in a website photo gallery? (https://www.linuxquestions.org/questions/general-10/what-is-the-best-file-size-for-pics-in-a-website-photo-gallery-684458/)

randell6564 11-18-2008 08:27 PM

What is the best file size for pics in a website photo gallery?
 
Hey folks!
I'm slowly adding images to my websites' photo gallery. My question is, what is the optimal size for thumbnails/images?

Thanks!

pljvaldez 11-19-2008 11:01 AM

I think it depends on who is going to view the gallery. I still have relatives on dialup, so I try to keep the thumbnails at < 2 KB and the photos < 100 KB.

lumak 11-19-2008 01:26 PM

if you are going for visual appeal, I would say 3 to 4 pictures in a row with a buffer on all sides
(page_width - (buffer * (number_of_photos + 1))) / number_of_photos

so for 3... photos with a space of 20px and a page width of 800px. it would be about 250px width for each picture.

ErV 11-19-2008 02:47 PM

Quote:

Originally Posted by randell6564 (Post 3346976)
Hey folks!
I'm slowly adding images to my websites' photo gallery. My question is, what is the optimal size for thumbnails/images?

Thanks!

Current layout is pretty good, but I wouldn't enlarge photos under cursor - it takes additional time to load larger pictures.
Ideally, users with 800x600 monitors should be able to view your gallery without too much scrolling. If you'll keep that in mind, choosing size will be easy.

randell6564 11-19-2008 08:26 PM

Thanks guys!
I think 'pljvaldez' hit it on the head concerning what I'm refering to.
Can I create an image of 100kb, and still have it be whatever size that I choose in pixels?

Wim Sturkenboom 11-19-2008 11:49 PM

Within certain limits, yes. You can compress more, reduce the number of colors and probably a few other things that I can't think of right now. But that will always be trial and error.

ErV 11-20-2008 12:14 AM

Quote:

Originally Posted by randell6564 (Post 3348141)
Thanks guys!
I think 'pljvaldez' hit it on the head concerning what I'm refering to.
Can I create an image of 100kb, and still have it be whatever size that I choose in pixels?

Yes. Either play with "jpeg quality" (for photos), or save images as palletized png (only text, monochrome images, line drawings and pictures with small numbers of colors, for photos it won't look very good).
Reducing quality of jpegs from 100% to 95% ("progressive" jpeg) gives significant change in size (95% image will be much smaller) without many noticeable artifacts. Even 75% quality will look very good.

pljvaldez 11-20-2008 11:17 AM

I seem to recall during a web development lesson I took years ago that the magic number for resolution was something like 75 ppi for viewing on computer monitors. Of course, that was in the 15" CRT days that maybe got 1024 x 768 resolution...

smurthy 11-20-2008 12:32 PM

Picasa Web album converts everything to jpg with default photo size of about 250KB in full viewing mode. This appears to be a very decent size for most pictures. Perhaps this is something for you to go by?

ErV 11-20-2008 01:15 PM

Quote:

Originally Posted by smurthy (Post 3348927)
Picasa Web album converts everything to jpg with default photo size of about 250KB in full viewing mode. This appears to be a very decent size for most pictures. Perhaps this is something for you to go by?

Why bother with it when you can do same with GIMP?

randell6564 11-20-2008 08:12 PM

Lots of ideas, thank you!

smurthy 11-21-2008 01:49 AM

Quote:

Originally Posted by ErV (Post 3348978)
Why bother with it when you can do same with GIMP?

It so happened that I had just installed Picasa for Linux and uploaded some 500 photos of various formats, and all were converted to jpg, with average size of about 250KB. The thumbnails were about 7KB (150x150px)

I am sure there may be better ways of doing this.

murthy

ErV 11-21-2008 07:53 AM

Quote:

Originally Posted by smurthy (Post 3349593)
It so happened that I had just installed Picasa for Linux and uploaded some 500 photos of various formats, and all were converted to jpg, with average size of about 250KB. The thumbnails were about 7KB (150x150px)

Okay, valid argument, in this case it makes sense.


All times are GMT -5. The time now is 05:15 AM.