orientate — adjusts image orientation automatically
Description
public Intervention\Image\Image orientate()
This method reads the EXIF image profile setting ‘Orientation’ and performs a rotation on the image to display the image correctly. Image object must be instantiated from file path to read the EXIF data correctly.
**Note: PHP must be compiled in with --enable-exif
to use this method. Windows users must also have the mbstring
extension enabled. **
Parameters
None
Return Values
Instance of Intervention\Image\Image
Examples
// instantiate image with auto-orientation
$img = Image::make('foo.jpg')->orientate();
See also
当前内容版权归 intervention 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 intervention .