$imagick = new \Imagick('image.jpg'); $imagick->setImageOrientation(3);
$imagick = new \Imagick('image.jpg'); $imagick->getImageOrientation();In this example, we're creating a new Imagick object and loading an image file called 'image.jpg'. We're then using the getImageOrientation function to get the current orientation value. These functions are part of the Imagick package library, which is a popular PHP extension that provides a way to manipulate images using a number of different graphics formats. It is built on top of ImageMagick, a powerful open-source image processing library, and provides a simple and easy-to-use API for working with images in PHP.