summaryrefslogtreecommitdiffstats
path: root/lib/public/IPreview.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/IPreview.php')
-rw-r--r--lib/public/IPreview.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/public/IPreview.php b/lib/public/IPreview.php
index 0942db4784c..c6417b4d182 100644
--- a/lib/public/IPreview.php
+++ b/lib/public/IPreview.php
@@ -96,11 +96,12 @@ interface IPreview {
* @param int $height
* @param bool $crop
* @param string $mode
+ * @param string $mimeType To force a given mimetype for the file (files_versions needs this)
* @return ISimpleFile
* @throws NotFoundException
* @since 9.2.0
*/
- public function getPreview(File $file, $width = -1, $height = -1, $crop = false, $mode = IPreview::MODE_FILL);
+ public function getPreview(File $file, $width = -1, $height = -1, $crop = false, $mode = IPreview::MODE_FILL, $mimeType = null);
/**
* Returns true if the passed mime type is supported