Welcome Guest, Not a member yet? Register   Sign In
Get orientation (landscape/ portrait) of image
#2

[eluser]Johan André[/eluser]
If you use CI Upload-library use $this->upload->data() (which returns an array) and check it for key "image_width" and "image_height".

If width > height then image is landscape, if width < height then image is portrait.
If width = height then image is square! Smile


Messages In This Thread
Get orientation (landscape/ portrait) of image - by El Forum - 07-15-2009, 09:06 AM
Get orientation (landscape/ portrait) of image - by El Forum - 07-15-2009, 09:19 AM
Get orientation (landscape/ portrait) of image - by El Forum - 07-15-2009, 09:50 AM
Get orientation (landscape/ portrait) of image - by El Forum - 07-15-2009, 11:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB