summaryrefslogtreecommitdiffstats
path: root/core/Command/Preview
Commit message (Collapse)AuthorAgeFilesLines
* Update core to PHP 7.4 standardCarl Schwan2022-05-202-38/+29
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Allow to delete non-migrated previews instead of moving themJohn Molakvoæ2021-12-091-6/+25
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-4/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add OCC command to reset rendered textsDaniel Calviño Sánchez2021-03-011-0/+202
| | | | | | | | | | The command is meant to be used when the fonts used to render texts ("core/fonts/NotoSans-Regular.ttf" and "core/fonts/NotoSans-Bold.ttf") are changed (for example, to add support for other scripts). The avatar and text file previews will be removed, so they will be generated again with the updated font when needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Migrate verbose messages to inline syntax of writeln()Morris Jobke2020-09-171-11/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Show lock messages only in verbose modeMorris Jobke2020-09-171-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow to run occ preview:repair in parallelMorris Jobke2020-09-171-1/+19
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use array_filter insteadMorris Jobke2020-08-071-10/+9
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add occ preview:migrate to migrate previews from the old flat structure to a ↵Morris Jobke2020-08-061-0/+280
subfolder structure * `php occ preview:repair` - a preview migration tool that moves existing previews into the new location introduced with #19214 * moves `appdata_INSTANCEID/previews/FILEID` to `appdata_INSTANCEID/previews/0/5/8/4/c/e/5/FILEID` * migration tool can be stopped during migration via `CTRL+C` - it then finishes the current folder (with the previews of one file) and stops gracefully * if a PHP memory limit is set in the `php.ini` then it will stop automatically once it has less than 25 MiB memory left (this is to avoid hard crashes in the middle of a migration) * the tool can be used during operation - possible drawbacks: * there is the chance of a race condition that a new preview is generated in the moment the folder is already migrated away - so the old folder with the newly cached preview is deleted and one cached preview needs to be re-generated * there is the chance of a race condition during access of a preview while it is migrated to the other folder - then no preview can be shown and results in a 404 (as of now this is an accepted risk) Signed-off-by: Morris Jobke <hey@morrisjobke.de>