Determining if an image is in landscape or portrait orienation. Determining if an image is in landscape or portrait orienation.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Determining if an image is in landscape or portrait orienation.

Started by Gizmo, May 06, 2006, 11:05:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Gizmo

Hi Coppermine Gurus,

Is there a way to determine if an image after it's uploaded is in landscape or portait orientation before displaying? Basically determining whether the long side is horizontal or vertical. I'd like to use this information in designing a new theme so knowing this for thumbnails, intermediate and full-size images would be useful.

Cheers,

Billy
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Stramm

check the pictures table... pwidth and pheight may be useful

Gizmo

Dang... why didn't I think to look there first. Thanks Stramm, hopefully I can make use of this to put forth an idea I'd like to work on. In case anyone else has done this or would like to help out, I'd like to create a theme that would allow the user to pick from a list of frames to view the photos with. Then when they order photos, they can specify a frame to have the photos printed in. These are frame masks and not actual frames that you mount a picture in.

Cheers,

Billy
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision