nextcloud/tests/lib/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
..
BackgroundCleanupJobTest.php Add tests 2018-05-14 13:30:22 +02:00
BitmapTest.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
GeneratorTest.php Only generate previews in powers of 4 and set min 2018-10-31 19:34:42 +01:00
HEICTest.php Address comments from @rullzer: 2018-08-17 18:37:23 +02:00
ImageTest.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
MP3Test.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
MovieTest.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
OfficeTest.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
Provider.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
SVGTest.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
TXTTest.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00