Commit Graph

14 Commits

Author SHA1 Message Date
Nikolaj Geisle
c576bbea03 v10: Fix build warnings in Web.Common (#12349)
* Run code cleanup

* Run dotnet format

* Start manual cleanup in Web.Common

* Finish up manual cleanup

* Fix tests

* Fix up InMemoryModelFactory.cs

* Inject proper macroRenderer

* Update src/Umbraco.Web.Common/Filters/JsonDateTimeFormatAttribute.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Update src/Umbraco.Web.Common/Filters/ValidateUmbracoFormRouteStringAttribute.cs

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Fix based on review

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2022-05-09 09:39:46 +02:00
Ronald Barendse
1a82e0854a v10: Update to ImageSharp v2 (#12185)
* Update to ImageSharp 2.1.0 and ImageSharp.Web 2.0.0-alpha.0.23

* Rename CachedNameLength to CacheHashLength and add CacheFolderDepth setting

* Replace PhysicalFileSystemProvider with WebRootImageProvider

* Support EXIF-orientation in image dimention extractor

* Remove virtual methods on FileProviderImageProvider

* Simplify FileInfoImageResolver

* Update to SixLabors.ImageSharp.Web 2.0.0-alpha.0.25 and remove custom providers

* Make CropWebProcessor EXIF orientation-aware

* Improve width/height sanitization

* Also use 'v' as cache buster value

* Add WebP to supported image file types

* Update to SixLabors.ImageSharp.Web 2.0.0-alpha.0.27 and fix test

* Fix rounding error and add test cases

* Update to newest and stable releases

* Move ImageSharpImageUrlGenerator to Umbraco.Web.Common

* Use IConfigureOptions to configure ImageSharp options

* Implement IEquatable on ImageUrlGenerationOptions classes

* Fix empty/null values in image URL generation and corresponding tests

* Use IsSupportedImageFormat extension method

* Remove unneeded reflection
2022-04-29 13:16:24 +02:00
Ronald Barendse
c5361ec54e Improve crop coordinate calculations 2021-08-11 09:53:58 +02:00
Ronald Barendse
01559ede97 Only support crop coordinates in CropWebProcessor 2021-08-10 23:55:37 +02:00
Ronald Barendse
c21656aff2 Change processor order and fix crop percentage calculation 2021-08-09 14:52:07 +02:00
Ronald Barendse
5cdcd021fa Remove support for whole percentage crop values 2021-08-09 12:00:37 +02:00
Ronald Barendse
fd93248d11 Move CropMode enum into seperate file 2021-08-09 11:59:23 +02:00
Ronald Barendse
20007db7f2 Add cropmode support and align logic to ImageProcessors Crop processor 2021-08-06 12:59:23 +02:00
Mole
c93fe0d2e7 Add method descriptions 2021-07-09 09:08:26 +02:00
Mole
cacef54ef7 Round to int instead of just converting 2021-07-09 09:04:07 +02:00
Mole
ba2e4cd760 Use decimal instead of float for coordinates 2021-07-09 08:08:41 +02:00
Mole
6376a32131 Use CommandParser to parse commands
Co-authored-by: Ronald Barendse <ronald@barend.se>
2021-07-09 08:04:20 +02:00
Mole
865a5b999c Add ParseDecimal method 2021-07-08 14:08:23 +02:00
Mole
a8dd90d9d6 Add CropWebProcessor 2021-07-08 13:48:44 +02:00