Page 1 of 1

Cropping Thumbs at the top not the centre

Posted: 10 Dec 2010, 18:28
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?

Re: Cropping Thumbs at the top not the centre

Posted: 12 Dec 2010, 00:44
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

Re: Cropping Thumbs at the top not the centre

Posted: 14 Dec 2010, 14:42
by Jane Blonde
Can you tell me where in the script?

Or would you be interested in making the change for a modest fee:)

Re: Cropping Thumbs at the top not the centre

Posted: 15 Dec 2010, 18:18
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?

Re: Cropping Thumbs at the top not the centre

Posted: 17 Dec 2010, 18:19
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