Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-11-01 11:34:55
- mlarino2
- Member
- Registered: 2007-07-12
- Posts: 30
jpg compression for thumnails in TXP
Hi,
I have been looking around the forum but cant find a topic on this issue.
I am creating my portfolio website, wich is image heavy, and the thumbnail creator in TXP compresses them too much.
I need a better quality JPG for my thumbnails, is there a way to chenge the compression in TXP???
Thanks!
Last edited by mlarino2 (2007-11-01 11:35:26)
Offline
Re: jpg compression for thumnails in TXP
As variant – you can use batch upload of full images using fpx_image_import without creating tnumbnail. And then upload thumbnails created yourself with desirable parameters. Is full img name is 14.jpg
thumbnail will have name 14t.jpg
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#3 2007-11-01 11:55:21
- mlarino2
- Member
- Registered: 2007-07-12
- Posts: 30
Re: jpg compression for thumnails in TXP
Thanks!
I forgot to mention, that yes, i Know there is that option, but changing the image compression will save me a lot of time.
Offline
Re: jpg compression for thumnails in TXP
In /textpattern/lib/class.thumb.php, the quality (0-100) is set to 80 on line 72:
$this->quality = 80;
You can edit the file and increase that value.
Offline
#5 2007-11-01 12:51:18
- mlarino2
- Member
- Registered: 2007-07-12
- Posts: 30
Re: jpg compression for thumnails in TXP
Thanks Ruud! exactly what I was looking for!
Offline
Pages: 1