LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
Search this Thread
Old 11-18-2008, 08:27 PM   #1
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Rep: Reputation: 31
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!
 
Old 11-19-2008, 11:01 AM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 11-19-2008, 01:26 PM   #3
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
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.
 
Old 11-19-2008, 02:47 PM   #4
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by randell6564 View Post
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.

Last edited by ErV; 11-19-2008 at 02:49 PM.
 
Old 11-19-2008, 08:26 PM   #5
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
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?
 
Old 11-19-2008, 11:49 PM   #6
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
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.
 
Old 11-20-2008, 12:14 AM   #7
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by randell6564 View Post
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.
 
Old 11-20-2008, 11:17 AM   #8
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
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...
 
Old 11-20-2008, 12:32 PM   #9
smurthy
Member
 
Registered: Oct 2008
Location: KL Malaysia
Distribution: Fedora 9, Ubuntu Hardy, Puppy Linux
Posts: 32

Rep: Reputation: 16
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?
 
Old 11-20-2008, 01:15 PM   #10
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by smurthy View Post
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?
 
Old 11-20-2008, 08:12 PM   #11
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
Lots of ideas, thank you!
 
Old 11-21-2008, 01:49 AM   #12
smurthy
Member
 
Registered: Oct 2008
Location: KL Malaysia
Distribution: Fedora 9, Ubuntu Hardy, Puppy Linux
Posts: 32

Rep: Reputation: 16
Quote:
Originally Posted by ErV View Post
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
 
Old 11-21-2008, 07:53 AM   #13
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
Quote:
Originally Posted by smurthy View Post
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.

Last edited by ErV; 11-21-2008 at 08:00 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Photo Gallery generator dkpw Slackware 5 02-24-2008 12:39 PM
[SOLVED] web photo gallery generator aihaike Linux - Software 2 01-31-2008 08:11 AM
Best web photo gallery? pantoniades Linux - Software 10 03-19-2005 12:47 AM
Photo Gallery zaicheke LQ Suggestions & Feedback 4 01-13-2005 09:24 PM
How about a photo gallery? sewer_monkey LQ Suggestions & Feedback 26 06-19-2002 02:20 PM


All times are GMT -5. The time now is 06:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration