Is it possible to crop pictures starting from the top ?

Phoca Gallery - image gallery extension
molla_marru
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 02 Dec 2009, 04:43

Is it possible to crop pictures starting from the top ?

Post by molla_marru »

First thank you for this great extension.

I really like the way thumbnails are created, nice beautiful square with shade. But I have one question, Is it possible to crop pictures starting from the top rather than in the middle of pictures so that the head part is visible. My problem is that most portrait (vertical) pictures are cut above the neck area. All landscape (horizontal) pictures looked perfect. I like the 'crop' feature. I don't want to disable it. I am wandering in case there is a way around this. Thanks for your help.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Is it possible to crop pictures starting from the top ?

Post by Jan »

Hi, yes this is the big problem because every picture is different, so if you will do such customization, it can happen, that landscaple images will display only blue sky, so every picture will by blue only. You can try to customize it, but I think it will be complicated, as you will need to add a lot of different if clauses to the cropping feature. I didn't try it yet, so cannot give any advice only that you can find the crop function here:

administrator\components\com_phocagallery\libraries\phocagallery\image\imagemagic.php

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