Cropping Thumbs at the top not the centre

Phoca Gallery - image gallery extension
Jane Blonde
Phoca Member
Phoca Member
Posts: 16
Joined: 22 Nov 2010, 16:34

Cropping Thumbs at the top not the centre

Post by Jane Blonde »

Hi Guys,

Loving Phocagallery at the moment, but I have one issue with resizing thumbnails which I cannot find an answer to.

The majority of images we have are of people, not all portraits though, when we create the thumbs automatically it crops to the centre of the image chopping off most of the head.

We need it to crop aligned to the top so that the full top remains and anything below the set size is removed not both top and bottom.

Any ideas, I don't see a setting for this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Cropping Thumbs at the top not the centre

Post by Jan »

Hi, there is no such option for doing this. You can crop the thumbnails or not crop them, in other case, the image thumbnail script needs to be modified :-(

Jan
If you find Phoca extensions useful, please support the project
Jane Blonde
Phoca Member
Phoca Member
Posts: 16
Joined: 22 Nov 2010, 16:34

Re: Cropping Thumbs at the top not the centre

Post by Jane Blonde »

Can you tell me where in the script?

Or would you be interested in making the change for a modest fee:)
Jane Blonde
Phoca Member
Phoca Member
Posts: 16
Joined: 22 Nov 2010, 16:34

Re: Cropping Thumbs at the top not the centre

Post by Jane Blonde »

I've found the file filethumbnail.php but really don't know where to start as nothing seems to relate to alignment.

any ideas?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Cropping Thumbs at the top not the centre

Post by Jan »

Hi,

see this file:
libraries\phocagallery\image\imagemagic.php

there are some comments so you will find the place where the cropping is made (// will be cropped) ... in fact this is a math

Jan
If you find Phoca extensions useful, please support the project
Post Reply