Jump to content


What file format do you recommend for thumbnails? Why?


  • Please log in to reply
7 replies to this topic

#1 Guest_kilbad_*

Guest_kilbad_*
  • Guests

Posted 27 September 2006 - 05:50 PM

SOLVED:: regarding thumbnail quality

I used imagemagick for the first time with a gallery script I wrote for my site.  I used it to generate jpeg thumbnails at 100% quality, of both small and medium size (see http://kilbad.com/in...eartwalk&page=1 ).  I feel like the thumbnail quality is terrible.  Does anyone have any recommendations for improving this? 

Would another file type be better?  Or are there some additional imagemagick convert command parameters I should be using? 

Just fyi, the reason I am using imagemagick is so I can batch convert all the images with the php gallery script without doing so manually.


Also, any other feedback about the gallery script, or my site in general, is greatly appreciated!

Thanks so much!
Brendan


FOLLOW-UP QUESTION:: What file format do you recommend for thumbnails?  Why?




#2 jcombs_31

jcombs_31
  • Staff Alumni
  • Advanced Member
  • 2,066 posts
  • LocationFL

Posted 27 September 2006 - 06:01 PM

why not just use the gd library? That is how I resize images for my gallery.  I set up a script that will search a directory for any image files, and reset them to whatever size I want in a loop.  Large directories take a little while to execute this way, but it works.

#3 Guest_kilbad_*

Guest_kilbad_*
  • Guests

Posted 27 September 2006 - 06:13 PM

The server I am on has Image Magick and NetPBM, so that is what I am using, and it works for me.  However, I do want to know if there is a way to improve the resulting thumbnails?  The current command line I am using is:

convert *.jpg -resize x250 -quality 100 small_thumbnail.jpg

#4 Guest_kilbad_*

Guest_kilbad_*
  • Guests

Posted 28 September 2006 - 02:59 PM

FOLLOW-UP QUESTION:: What file format do you recommend for thumbnails?  Why?

I have read a few articles on the issue, but am still not clear as to whether jpg or png is the right choice?

#5 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 28 September 2006 - 03:00 PM

format: jpg or png
why: much better color pallette and resolution, especially if you're using the GDlib to create them.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#6 redbullmarky

redbullmarky
  • Staff Alumni
  • Advanced Member
  • 2,863 posts
  • LocationBedfordshire, England

Posted 28 September 2006 - 03:15 PM

agreed with obsidian, although the support in IE for PNGs is a bit rubbish. JPG would be the safest bet
"you have to keep pissing in the wind to learn how to keep your shoes dry..."

I say old chap, that is rather amusing!

#7 neylitalo

neylitalo
  • Staff Alumni
  • Advanced Member
  • 1,854 posts
  • LocationMichigan, USA

Posted 28 September 2006 - 03:22 PM

agreed with obsidian, although the support in IE for PNGs is a bit rubbish. JPG would be the safest bet


Well, the only real problem is if the PNG has transparencies. In which case, it'll replace the transparent area with some specific color that I can't recall. (I think it's white, but I'm not sure.) They say that IE 7 is going to fully support PNG, transparencies and all, but I have yet to try it out.
http://nealylitalo.net - My personal website, and home of The Netizen's Journal.

#8 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 28 September 2006 - 04:07 PM

agreed with obsidian, although the support in IE for PNGs is a bit rubbish. JPG would be the safest bet


Well, the only real problem is if the PNG has transparencies. In which case, it'll replace the transparent area with some specific color that I can't recall. (I think it's white, but I'm not sure.) They say that IE 7 is going to fully support PNG, transparencies and all, but I have yet to try it out.


indeed, IE7 does a much better job with transparencies on png files
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users