Jump to content

[SOLVED] Determine orientation of JPG, portrait or landscape


cgm225

Recommended Posts

All youd have to do is see if the width is longer than the length for landscape, and for portrait see if the length is longer than the width.

You can do this with an if statement and using this function http://uk2.php.net/manual/en/function.getimagesize.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.