IProvider

interface OCP\Preview\IProvider
Interface IProvider
Implemented by:OC\Preview\Provider
Source:lib/public/Preview/IProvider.php#34

Methods

public OCP\Preview\IProvider::getMimeType()
Source:lib/public/Preview/IProvider.php#39
Returns:string Regex with the mimetypes that are supported by this provider
Since:8.1.0
public OCP\Preview\IProvider::isAvailable($file)
Check if a preview can be generated for $path
Source:

lib/public/Preview/IProvider.php#48

Parameters:
Returns:

bool

Since:

8.1.0

public OCP\Preview\IProvider::getThumbnail($path, $maxX, $maxY, $scalingup, $fileview)
get thumbnail for file at path $path
Source:

lib/public/Preview/IProvider.php#61

Parameters:
  • $path (string) Path of file
  • $maxX (int) The maximum X size of the thumbnail. It can be smaller depending on the shape of the image
  • $maxY (int) The maximum Y size of the thumbnail. It can be smaller depending on the shape of the image
  • $scalingup (bool) Disable/Enable upscaling of previews
  • $fileview (OC\Files\View) fileview object of user folder
Returns:

bool | \OCP\IImage false if no preview was generated

Since:

8.1.0