summaryrefslogtreecommitdiffstats
path: root/apps/theming/lib/ImageManager.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix background removal checkJohn Molakvoæ2023-10-191-3/+4
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Migrate applications away from deprecated ILoggerCôme Chilliet2023-09-211-26/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(theming): add mime accept in Theming image file pickerJohn Molakvoæ2023-08-031-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: add detected mime type to exceptionDaniel Kesselberg2023-06-241-1/+1
| | | | | | | The mimetype may not match the file extension. Helps the user to find out why a provided image is not accepted. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Refactors "strpos" calls in /apps/theming to improve code readability.Faraz Samapoor2023-06-021-4/+4
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* fix(themeing): Add error handling to ImageManagerFerdinand Thiessen2023-02-201-23/+41
| | | | Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* feat(theming): Only convert a background image if it benefits from itFerdinand Thiessen2023-02-201-2/+31
| | | | | | | | | * WebP images are generally quite small, converting to pngs would increase the filesize a lot. * Small JPEG and PNG images do not benefit from any conversion, so skip it. * JPEG images will get quite bigger when converted to PNG so instead convert to progressive JPEG Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* More theming cypress tests and some fixesJohn Molakvoæ2022-11-291-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Extract colour from custom backgroundJohn Molakvoæ2022-11-291-1/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Allow to remove the background and select a custom colourJohn Molakvoæ2022-11-291-6/+31
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Rewrite admin theming in VueChristopher Ng2022-10-281-15/+0
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Simplify variable namesJohn Molakvoæ2022-10-191-2/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Properly use user background cachebusterJohn Molakvoæ2022-10-141-0/+3
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Scope the appdata theming storage for global and usersJohn Molakvoæ2022-10-141-11/+18
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Avoid file system access on checking if an image existsJulius Härtl2022-02-021-3/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix psalm issues in theming appCarl Schwan2022-01-261-3/+7
| | | | | | | | After this change, we are down to only one psalm warning for this app and related to the Application.php. This also make composer psam:update-baseline not silently ignore new errors. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-3/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Allow webp as background imageste1012021-03-091-1/+1
|
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* override default dashboard background with theming oneJulien Veyssier2020-11-131-2/+2
| | | | | | | | fix getAppValue default value in theming app fix cacheBuster value injection Signed-off-by: Julien Veyssier <eneiluj@posteo.net> Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
* Cleanup ImageManager::getImage()Morris Jobke2020-11-041-6/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add gif to if-statement to not convertJacob Neplokh2020-11-021-1/+1
| | | | | | - SVGs are already there, so I just added it alongside it (as recommended by https://github.com/nextcloud/server/issues/16232#issuecomment-679920284) Signed-off-by: Jacob Neplokh <me@jacobneplokh.com>
* Enable theming background transparencyJohn Molakvoæ (skjnldsv)2020-10-251-1/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Allow setting favicon with a .ico fileGary Kim2020-10-141-0/+5
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Add occ command to set theming valuesJulius Härtl2020-09-241-10/+62
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+2
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-4/+3
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #10898 from ↵Morris Jobke2018-10-081-1/+1
|\ | | | | | | | | nextcloud/feature/10684/default-logo-color-theme-colors Switches the default logo color depending on the primary color
| * Updates inverted logo handling to work like the app iconsMichael Weimann2018-10-021-3/+0
| | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
| * Moves the logo files to logoMichael Weimann2018-10-021-3/+4
| | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
| * Switches the default logo color depending on the primary colorMichael Weimann2018-10-021-0/+2
| | | | | | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* | Append error from exception for messageDaniel Kesselberg2018-10-031-1/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Fix call to loggerDaniel Kesselberg2018-10-031-1/+1
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add info message if an exception occurs during the svg to png conversionJulius Härtl2018-06-141-1/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Minor fixes and cleanupJulius Härtl2018-06-061-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use svg opt out as parameterJulius Härtl2018-06-051-6/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Adjust ImageManager tests for png generationJulius Härtl2018-06-051-6/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Generate PNG version of the theming app logo for mailsJulius Härtl2018-06-051-3/+53
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix theming testsJulius Härtl2018-04-191-0/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add typehintsJulius Härtl2018-04-191-2/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move to more generic image handling and add extra imagesJulius Härtl2018-04-191-6/+66
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headersMorris Jobke2017-11-061-11/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move theming images to AppDataJulius Haertl2017-02-161-1/+1
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Sanitize input and small fixesJulius Haertl2016-11-181-3/+0
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Replace null return with NotFoundExceptionJulius Haertl2016-11-181-6/+3
| | | | Signed-off-by: Julius Haertl <jus@bitgrid.net>
* Caching for icon files using AppDataJulius Haertl2016-11-181-0/+118
Signed-off-by: Julius Haertl <jus@bitgrid.net>