Support for Portrait & Landscape photos

Permalink Browser Info Environment

My photo collection is made up of portrait and landscape photos.

Portrait images are getting cropped in a way that I don't really like...

Can you suggest a way for me to detect protrait images and then crop them differently?

e.g. maybe if I can detect if the image height is greater than width, I could use: $ih->outputThumbnail1($thumbf,360,500,'');
rather than the current code -- $ih->outputThumbnail1($thumbf,500,360,'');

Also, some of my images are a bit wide/panoramic... I'd love a tidy solution for getting those to display too.

Any suggestions??


Type: Discussion
Status: New
View Replies: View Best Answer
webporter replied on at Permalink Best Answer Reply

Just reading the other threads, and my question was pretty much answered here:

Your suggestion worked for me:

On line 83, replace "outputThumbnail1" with "outputThumbnail2". This does the resizing without cropping.

Now I just need to get the image to centre... but shouldn't be too hard :)

webporter replied on at Permalink Reply
To centre the image, in my custom stylesheet, I added this code to override the gallerific style:

div.slideshowg a.advance-linkg {

Happy with that :)
jb1 replied on at Permalink Reply

Glad it's working on you. We'll continue to improve this add-on and thank you for your inputs.


concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.