aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/image.php
Commit message (Collapse)AuthorAgeFilesLines
* Move legacy classes from PSR0 to PSR4Christoph Wurst2020-04-071-1194/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-47/+47
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-5/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix sanity checks #16963Samuel CHEMLA2019-09-011-5/+3
| | | | Signed-off-by: Samuel CHEMLA <chemla.samuel@gmail.com>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use index based string access for substr with length of 1Morris Jobke2018-01-261-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Improve OC_Image code to not guess the type of input, but actually request ↵Morris Jobke2018-01-181-36/+14
| | | | | | | | the specific methods to be called Followup to #7836 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix float/integer handling in image APIMorris Jobke2018-01-171-4/+14
| | | | | | | * IImage::crop/preciseResize now have type hinting for integers * found while testing strict typing for PHP 7+ Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Only return 1 typeRoeland Jago Douma2018-01-071-2/+3
| | | | | | | Throw proper exception if we can't get the mimetype for a preview. Catch it later on so we can just return a not found for the preview. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't lie about the preview mimetypeRoeland Jago Douma2018-01-071-0/+18
| | | | | | | | | | | | | | For legacy reasons we stored all the previews with a png extention. However we did not put png data in them all the time. This caused the preview endpoints to always report that a preview is a png file. Which was a lie. Since we abstract away from the storage etc in the previewmanager. There is no need anymore to store them as .png files and instead we can use the actual file extention. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove unused mimetype detection method in OC_ImageMorris Jobke2017-11-271-16/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Doc: Fix phpDoc issuesJulius Härtl2017-10-231-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* better handling of preview generation errorsRobin Appelman2017-05-021-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Test is a file is a valid jpg fileRoeland Jago Douma2017-03-081-1/+5
| | | | | | | | | | | During preview generation if we provide an invalid JPG file the system errors out with a PHP Fatal Error. Now we can't catch Fatal Errors (in 5.6). I suspect that exif_imagetype to fall back to the extention. However a valid jpg file has a size. So we request the size of the image and just drop out if that returns false. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix code quality a bitJoas Schilling2017-02-221-13/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use 90% JPEG quality for thumbnails and previews by defaultJoas Schilling2017-02-221-3/+26
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Check if color exists in palette before using itVictor Dubiniuk2017-02-101-3/+3
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Make sure invalid images don't flood the log fileJoas Schilling2017-02-101-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix avatar on exif rotated imagesRoeland Jago Douma2016-10-261-0/+27
| | | | | | Fixes #1928 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Some cleanup within OC_Image (#25875)Thomas Müller2016-08-291-15/+11
|
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-3/+4
|
* Update license headersLukas Reschke2016-05-261-2/+2
|
* Move non PSR-4 files from lib/private root to legacyRoeland Jago Douma2016-04-301-0/+1147
As discussed we move all old style classes (OC_FOO_BAR) to legacy. Then from there we can evaluate the need to convert them back or if they can be fully deprecated/deleted.