analyze($fileview->getLocalFile($path)); getid3_lib::CopyTagsToComments($tags); $picture = @$tags['id3v2']['APIC'][0]['data']; $image = new \OC_Image($picture); if (!$image->valid()) return $this->getNoCoverThumbnail($maxX, $maxY); return $image; } public function getNoCoverThumbnail($maxX, $maxY){ $image = new \OC_Image(); return $image; } } OC_Preview::registerProvider('OC_Preview_MP3');