Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2007-11-01 11:51:28

the_ghost
Plugin Author
From: Minsk, The Republic of Belarus
Registered: 2007-07-26
Posts: 907
Website

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

#4 2007-11-01 12:02:40

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

Board footer

Powered by FluxBB