You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This allows callers to use the API without increasing the disk usage.
Example: blurhash generation, where we request a preview for all uploaded pictures, but don't want to necessarily store that preview.
Signed-off-by: Louis Chemineau <louis@chmn.me>
Copy file name to clipboardExpand all lines: lib/public/IPreview.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -90,12 +90,14 @@ public function hasProviders();
90
90
* @param bool $crop
91
91
* @param string $mode
92
92
* @param string $mimeType To force a given mimetype for the file (files_versions needs this)
93
+
* @param bool $cacheResult Whether or not to cache the preview on the filesystem. Default to true. Can be useful to set to false to limit the amount of stored previews.
93
94
* @return ISimpleFile
94
95
* @throws NotFoundException
95
96
* @throws \InvalidArgumentException if the preview would be invalid (in case the original image is invalid)
96
97
* @since 11.0.0 - \InvalidArgumentException was added in 12.0.0
98
+
* @since 32.0.0 - getPreview($cacheResult) added the $cacheResult argument to the signature
0 commit comments