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?
Cropping Thumbs at the top not the centre
-
Jane Blonde
- Phoca Member

- Posts: 16
- Joined: 22 Nov 2010, 16:34
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Cropping Thumbs at the top not the centre
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
Jan
If you find Phoca extensions useful, please support the project
-
Jane Blonde
- Phoca Member

- Posts: 16
- Joined: 22 Nov 2010, 16:34
Re: Cropping Thumbs at the top not the centre
Can you tell me where in the script?
Or would you be interested in making the change for a modest fee:)
Or would you be interested in making the change for a modest fee:)
-
Jane Blonde
- Phoca Member

- Posts: 16
- Joined: 22 Nov 2010, 16:34
Re: Cropping Thumbs at the top not the centre
I've found the file filethumbnail.php but really don't know where to start as nothing seems to relate to alignment.
any ideas?
any ideas?
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Cropping Thumbs at the top not the centre
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
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