summaryrefslogtreecommitdiffstats
path: root/tests/lib/ImageTest.php
Commit message (Collapse)AuthorAgeFilesLines
* increase preview_max_memory and make it easier to debugSimon L2022-12-221-2/+2
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Fix test image default qualityJ0WI2022-12-041-1/+1
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* getAppValue expects stringJohn Molakvoæ2022-11-171-1/+1
| | | | Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* Tests adjustementGit'Fellow2022-11-161-1/+1
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Interlace all output JPEGVarun Patil2022-10-251-0/+2
| | | | | | Progressive images are both smaller and faster to load. Signed-off-by: Varun Patil <radialapps@gmail.com>
* Prevent loading images that would require too much memory.Joachim Bauch2022-01-111-0/+17
| | | | | | | | | | | | | For most image formats, the header specifies the width/height. PHP allocates an image object from that size, even if the actual image data is much smaller. This image object size is not limited by the limit configured in PHP. The memory limit can be configured through "config.php" setting "preview_max_memory" and defaults to 128 MBytes which should be enough for most images without filling up all memory. Signed-off-by: Joachim Bauch <bauch@struktur.de>
* Revert "Do not run image tests on php8"Côme Chilliet2021-10-281-68/+0
| | | | | | This reverts commit d690f909284ae4bb4dee7d00318104ee76720bfa. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* php cs fixRoeland Jago Douma2020-12-071-1/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not run image tests on php8Roeland Jago Douma2020-12-071-0/+69
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make phpunit8 compatibleRoeland Jago Douma2019-11-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Improve OC_Image code to not guess the type of input, but actually request ↵Morris Jobke2018-01-181-43/+81
| | | | | | | | the specific methods to be called Followup to #7836 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused mimetype detection method in OC_ImageMorris Jobke2017-11-271-16/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use 90% JPEG quality for thumbnails and previews by defaultJoas Schilling2017-02-221-1/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove unneeded checks if it runs on a Windows machineMorris Jobke2016-07-081-4/+0
| | | | * the setup check is still there
* Fix lib/Joas Schilling2016-05-191-0/+341