public function addToCollection($item, $check_for_dups, $path_to_media) { $media_file = parent::addToCollection($item, $check_for_dups, $path_to_media); $this->makeThumbnail($item, $path_to_media); $this->makeViewitem($item, $path_to_media); return $media_file; }
function addToCollection($item, $check_for_dups, $path_to_media) { $media_file = parent::addToCollection($item, $check_for_dups, $path_to_media); $rotate = 0; if (isset($this->metadata['exif_orientation'])) { if (6 == $this->metadata['exif_orientation']) { $rotate = 90; } if (8 == $this->metadata['exif_orientation']) { $rotate = 270; } } $this->makeThumbnail($item, $path_to_media, $rotate); $this->makeViewitem($item, $path_to_media, $rotate); $this->makeSizes($item, $path_to_media, $rotate); return $media_file; }