Guest kilbad Posted September 27, 2006 Share Posted September 27, 2006 SOLVED:: regarding thumbnail qualityI 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/index.php?id=photos&album=9.24.06.heartwalk&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[b]FOLLOW-UP QUESTION:: What file format do you recommend for thumbnails? Why?[/b] Quote Link to comment https://forums.phpfreaks.com/topic/22271-what-file-format-do-you-recommend-for-thumbnails-why/ Share on other sites More sharing options...
jcombs_31 Posted September 27, 2006 Share Posted September 27, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/22271-what-file-format-do-you-recommend-for-thumbnails-why/#findComment-99725 Share on other sites More sharing options...
Guest kilbad Posted September 27, 2006 Share Posted September 27, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/22271-what-file-format-do-you-recommend-for-thumbnails-why/#findComment-99735 Share on other sites More sharing options...
Guest kilbad Posted September 28, 2006 Share Posted September 28, 2006 [b]FOLLOW-UP QUESTION:: What file format do you recommend for thumbnails? Why?[/b]I have read a few articles on the issue, but am still not clear as to whether jpg or png is the right choice? Quote Link to comment https://forums.phpfreaks.com/topic/22271-what-file-format-do-you-recommend-for-thumbnails-why/#findComment-100304 Share on other sites More sharing options...
obsidian Posted September 28, 2006 Share Posted September 28, 2006 format: jpg or pngwhy: much better color pallette and resolution, especially if you're using the GDlib to create them. Quote Link to comment https://forums.phpfreaks.com/topic/22271-what-file-format-do-you-recommend-for-thumbnails-why/#findComment-100307 Share on other sites More sharing options...
redbullmarky Posted September 28, 2006 Share Posted September 28, 2006 agreed with obsidian, although the support in IE for PNGs is a bit rubbish. JPG would be the safest bet Quote Link to comment https://forums.phpfreaks.com/topic/22271-what-file-format-do-you-recommend-for-thumbnails-why/#findComment-100321 Share on other sites More sharing options...
neylitalo Posted September 28, 2006 Share Posted September 28, 2006 [quote author=redbullmarky link=topic=109724.msg443132#msg443132 date=1159456515]agreed with obsidian, although the support in IE for PNGs is a bit rubbish. JPG would be the safest bet[/quote]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. Quote Link to comment https://forums.phpfreaks.com/topic/22271-what-file-format-do-you-recommend-for-thumbnails-why/#findComment-100323 Share on other sites More sharing options...
obsidian Posted September 28, 2006 Share Posted September 28, 2006 [quote author=neylitalo link=topic=109724.msg443134#msg443134 date=1159456969][quote author=redbullmarky link=topic=109724.msg443132#msg443132 date=1159456515]agreed with obsidian, although the support in IE for PNGs is a bit rubbish. JPG would be the safest bet[/quote]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.[/quote]indeed, IE7 does a [b]much[/b] better job with transparencies on png files Quote Link to comment https://forums.phpfreaks.com/topic/22271-what-file-format-do-you-recommend-for-thumbnails-why/#findComment-100343 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.