Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2013-06-10 16:09:40

hilaryaq
Plugin Author
Registered: 2006-08-20
Posts: 335
Website

[howto] Crop thumbnail from the top

For anyone wanting to do this, look for class.thumb.php in the textpattern>lib directory

See the line: $off_h = round(($this->_SRC[‘height’] – $cpyHeight) / 2);

Edit with: $off_h = 0; // round(($this->_SRC[‘height’] – $cpyHeight) / 2);

Now your thumbs will always crop from the top of the image!


…………………
I <3 txp
…………………

Offline

Board footer

Powered by FluxBB