leftypol/inc/Data/ImageMetadata.php

19 lines
456 B
PHP

<?php
namespace Vichan\Data;
class ImageMetadata {
// NOT affected by the exit orientation.
public int $width;
// NOT affected by the exif orientation.
public int $height;
public string $mime;
public ?int $exif_orientation;
public function __construct(int $width, int $height, string $mime, ?int $exif_orientation) {
$this->width = $$width;
$this->height = $$height;
$this->mime = $mime;
$this->exif_orientation = $exif_orientation;
}
}