Joas Schilling
f41c8c0089
Check if the file isReadable() before sending a (cached) preview
9 years ago
Joas Schilling
0215b004da
Update with robin
9 years ago
Joas Schilling
ba87db3fcc
Fix others
9 years ago
Robin Appelman
dfcaeeabb3
propagator batching when removing thumbnails
10 years ago
Robin Appelman
1fddd62c1c
remvoe duplicate rmdir
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Roeland Jago Douma
f52c5b31b6
Move more from \OC to PSR-4
* \OC\OCSClient
* \OC\Preview
* \OC\PreviewManager
* \OC\Repair
* \OC\RepairException
* \OC\Search
* \OC\ServerContainer
* \OC\ServerNotAvailableException
* \OC\ServiceUnavailableException
* \OC\Setup
* \OC\Streamer
* \OC\SubAdmin
* \OC\SystemConfig
* \OC\TagManager
* \OC\Tags
* \OC\TempManager
* \OC\TemplateLayout
* \OC\URLGenerator
* \OC\Updater
10 years ago
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
10 years ago
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
10 years ago
Joas Schilling
8756a22c60
Fix more things
10 years ago
Scrutinizer Auto-Fixer
0d0151a3e1
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Roeland Jago Douma
b460bde7c6
Removed deprecated OC_Helper::mimeTypeIcon function
10 years ago
Lukas Reschke
61da3d530d
Verify return type
Can also be null. Silences another security warning...
10 years ago
Robin Appelman
1c3e28a73b
Add tests
10 years ago
Robin Appelman
dc49e76747
stricter check if thumbnail is cached
10 years ago
Robin Appelman
884e2fcd6e
to much copy paste
10 years ago
Robin Appelman
9925ff33f1
use cache data we already have to check if a thumbnail of specific size is cached
10 years ago
Robin Appelman
52d4495793
use the fileinfo to check if we have a valid file
10 years ago
Robin Appelman
f4d180ee5c
allow passing the fileinfo to the preview manager
10 years ago
Robin Appelman
a5ad5bf29b
Fix preview caching
10 years ago
Robin Appelman
f41a38ba15
Cover both width and height for the sidebar preview
10 years ago
Robin Appelman
d9db959331
Revert "Show cached previews directly"
This reverts commit 1b708e26ef .
10 years ago
Georg Ehrke
b3ff773bbf
delete cached preview when rolling back file's version
add random number using OC.parseQueryString and _.extend()
version rollback: add missing prefix to OC\Preview::post_delete
add test to assure that the rollback hook is called
11 years ago
Robin Appelman
1b708e26ef
Show cached previews directly
10 years ago
Robin Appelman
0f6df2e0b6
Allow creating previewss that cover the specified dimensions
10 years ago
Thomas Müller
d3ac73c0c9
Remove OC_Log
11 years ago
Morris Jobke
f63915d0c8
update license headers and authors
11 years ago
Olivier Paroz
ba3b6f9be4
Remove unneeded returns from private cropping methods
11 years ago
Olivier Paroz
64f0fd0889
Remove unneeded returns from private cropping methods
11 years ago
Olivier Paroz
8193e1d7c1
Move media type icon preview creation to its own method
11 years ago
Olivier Paroz
13617a0475
Send the mime icon if we can't generate a preview
11 years ago
Olivier Paroz
71d65cb713
Fix max preview, some resizing and caching issues and force preview providers to resize their previews properly
* introduces a method in OC_Image which doesn't stretch images when trying to make them fit in a box
* adds the method to all key providers so that they can do their job, as expected by the Preview class
* improves the caching mechanism of Preview in order to reduce I/O and to avoid filling the available disk space
* fixes some long standing issues
* **contains mostly tests**
11 years ago
Olivier Paroz
74bf9806b0
Introducing the maximum size preview
The first time we're asked to generate a preview we'll generate one of the maximum dimension indicated in the configuration and all future resizing requests will be done on that preview in order to not waste time converting the same file over and over.
One of the fixes required for #12465
11 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Joas Schilling
8ed27d2ce0
Create an interface for OC_Image and OCP\Image for the public API
11 years ago
Joas Schilling
c1f266db88
Add an interface for the preview providers
11 years ago
Joas Schilling
0b37d5aea3
Move default provider registration to preview manager
11 years ago
Joas Schilling
cae8529359
Register preview providers on the preview manager instead of OC\Preview
11 years ago
Joas Schilling
a12e16e985
Check whether the file id is valid, before using it to delete the previews
11 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0 .
11 years ago
Olivier Paroz
f49805eea5
Add support for font previews
11 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
11 years ago
Lukas Reschke
ceaaab6295
Verify whether type is correct
`$this->info` can very well contain an empty array or possibly other values. This means that when this code path is called a PHP Fatal error might get thrown which is not what we want.
11 years ago
Robin Appelman
2eab0f2121
Allow disabling previews per mount
11 years ago
Joas Schilling
69a5a0c1a0
Stop flooding the log, when previews are disabled
11 years ago
Joas Schilling
ec7b55f5be
Split bitmap providers into one per file
11 years ago
Joas Schilling
3ec42ad598
Split office providers into one class per file
11 years ago
Joas Schilling
9cb54e3809
Fix intendation and doc blocks of preview providers
11 years ago
Joas Schilling
fca9d32545
Move registration of core preview providers to preview
So the class files only have class code and don't execute code
11 years ago