coppermine crops the images randomly for exact size coppermine crops the images randomly for exact size
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

coppermine crops the images randomly for exact size

Started by allvip, October 17, 2013, 03:01:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

allvip

coppermine crops the images randomly when exact width and height is set in config for thumbnails (it shoud crop the top of the image not the middle).

see here:

http://www.allvip.us/cpg/z/thumbnails.php?album=2

how can I fix it?

ΑndrĂ©

Coppermine always uses the picture's center as exact thumbnail. I assume you always want to use top part of your pictures as exact thumbnails. If so (and assuming you're using GD2 as resize method), open include/picmgmnt.inc.php, find
$destWidth = $thb_width;
and above, add
$yOffset = 0;

allvip