nextcloud/lib/private/Preview
Roeland Jago Douma ce10f8b8c4
Only generate previews in powers of 4 and set min
Before we'd round up all preview request to their nearest power of two.
This resulted still in a lot of possible images. Generating a lot of
server load and taking up a lot of space.

This moves it to previews to be powers of 4: 64, 256, 1024 and 4096
Also the first two powers are always skipped (4, 16) as it doesn't make
sense to generate previews for that.

We cache preview pretty agressively and I feel this is a better
tradeoff.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2018-10-31 19:34:42 +01:00
..
BMP.php Fix others 2016-07-21 18:13:57 +02:00
BackgroundCleanupJob.php Move to join 2018-05-14 13:30:22 +02:00
Bitmap.php Log path of file that failed to be parsed 2018-06-28 11:09:50 +02:00
Font.php Fix others 2016-07-21 18:13:57 +02:00
GIF.php Fix others 2016-07-21 18:13:57 +02:00
Generator.php Only generate previews in powers of 4 and set min 2018-10-31 19:34:42 +01:00
GeneratorHelper.php Allow the creationg of previews of files stored in appdata 2018-10-08 19:37:45 +02:00
HEIC.php Fixes 2018-08-24 21:27:21 +02:00
Illustrator.php Fix others 2016-07-21 18:13:57 +02:00
Image.php Change @georgehrke's email 2017-11-06 20:38:59 +01:00
JPEG.php Fix others 2016-07-21 18:13:57 +02:00
MP3.php Change @georgehrke's email 2017-11-06 20:38:59 +01:00
MSOffice2003.php Fix others 2016-07-21 18:13:57 +02:00
MSOffice2007.php Fix others 2016-07-21 18:13:57 +02:00
MSOfficeDoc.php Fix others 2016-07-21 18:13:57 +02:00
MarkDown.php Fix others 2016-07-21 18:13:57 +02:00
Movie.php Change @georgehrke's email 2017-11-06 20:38:59 +01:00
Office.php No need to convert to PDF with LibreOffice, just convert to PNG 2018-07-12 11:40:41 +03:00
OpenDocument.php Fix others 2016-07-21 18:13:57 +02:00
PDF.php Fix others 2016-07-21 18:13:57 +02:00
PNG.php Fix others 2016-07-21 18:13:57 +02:00
Photoshop.php Fix others 2016-07-21 18:13:57 +02:00
Postscript.php Fix others 2016-07-21 18:13:57 +02:00
Provider.php Change @georgehrke's email 2017-11-06 20:38:59 +01:00
SVG.php move log constants to ILogger 2018-04-26 10:45:52 +02:00
StarOffice.php Fix others 2016-07-21 18:13:57 +02:00
TIFF.php Fix others 2016-07-21 18:13:57 +02:00
TXT.php Use correct typeface for txt previews 2018-10-23 13:13:21 +02:00
Watcher.php Delete the previews when a version is restored 2018-05-14 19:58:19 +02:00
WatcherConnector.php Delete the previews when a version is restored 2018-05-14 19:58:19 +02:00
XBitmap.php Fix others 2016-07-21 18:13:57 +02:00