Page 1 of 1

Is it possible to crop pictures starting from the top ?

Posted: 02 Dec 2009, 05:25
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.

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

Posted: 02 Dec 2009, 16:10
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