Advanced search  

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

Pages: [1]   Go Down

Author Topic: coppermine crops the images randomly for exact size  (Read 4163 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
coppermine crops the images randomly for exact size
« on: October 17, 2013, 03:01:01 pm »

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?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: coppermine crops the images randomly for exact size
« Reply #1 on: November 06, 2013, 02:35:15 pm »

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
Code: [Select]
$destWidth = $thb_width;and above, add
Code: [Select]
$yOffset = 0;
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: coppermine crops the images randomly for exact size
« Reply #2 on: November 06, 2013, 09:49:02 pm »

thanks.I need it that.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.