Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-09 01:30:52

grafzahl
Member
From: Magdeburg
Registered: 2006-07-28
Posts: 67
Website

How to customize the jpg-compression of thumbnails

Hey guys,

iam trying to build a little photoblog with Textpattern.

Everything works fine, but my problem is the compression of the thumbnails. Anybody has an idea how i can get a better quality for the generated thumbnails? Do i have to hack TXP, is there a plugin or something?

Thx 4 your help :)

Offline

#2 2008-03-09 02:07:50

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: How to customize the jpg-compression of thumbnails

You should be getting 80% quality (at least from L70 in textpattern/lib/class.thumb.php) – you need more than that? I don’t know of any plugins that affect thumbnail quality, so you could either modify class.thumb or upload your own thumbnail.

Offline

#3 2008-03-09 12:05:09

grafzahl
Member
From: Magdeburg
Registered: 2006-07-28
Posts: 67
Website

Re: How to customize the jpg-compression of thumbnails

Mhm for a normal weblog the compression is ok, but for a photoblog the quality is a little bit to blurry…

Hacked the class.thumb.php for now, but for the future it would be great to modifiy the compression in the admin-menu….

Thanks for your help jm.

Offline

#4 2008-03-09 12:05:59

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: How to customize the jpg-compression of thumbnails

80% is the best you’re going to get from gd library. anything higher just creates much larger file sizes at very little to no visible quality gain.

Last edited by iblastoff (2008-03-09 12:06:43)

Offline

#5 2008-03-09 13:04:30

grafzahl
Member
From: Magdeburg
Registered: 2006-07-28
Posts: 67
Website

Re: How to customize the jpg-compression of thumbnails

iblastoff I am now at 93% and the results looks still better then with 80%.. the filesize has increased by 300% but for thumbnails this is ok. so… i can see a quality difference.

Offline

Board footer

Powered by FluxBB