Commit Graph

136 Commits

Author SHA1 Message Date
crobibero
73d2cb1c2a Updated based on review feedback 2020-11-13 18:04:06 -07:00
crobibero
95ebb9a55a Use null coalescing when possible 2020-11-13 11:24:46 -07:00
crobibero
5f52a58e78 Convert NullReferenceException to ResourceNotFoundException 2020-11-13 11:14:44 -07:00
crobibero
a02514a114 Fix nullability errors in Jellyfin.Drawing.Skia 2020-11-13 08:34:34 -07:00
crobibero
83629ab6f2 Update packages to net5 2020-11-10 09:52:34 -07:00
Anthony Lavado
1f5ac19346
Merge pull request #3954 from Ullmie02/library-pictures
Use backdrop with library name as library thumbnail
2020-10-13 00:02:08 -04:00
dependabot[bot]
e84cfc688b
Bump BlurHashSharp.SkiaSharp from 1.1.0 to 1.1.1
Bumps [BlurHashSharp.SkiaSharp](https://github.com/Bond-009/BlurHashSharp) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/Bond-009/BlurHashSharp/releases)
- [Commits](https://github.com/Bond-009/BlurHashSharp/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-28 14:48:34 +00:00
dependabot[bot]
5b6b66f7b3
Bump BlurHashSharp from 1.1.0 to 1.1.1
Bumps [BlurHashSharp](https://github.com/Bond-009/BlurHashSharp) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/Bond-009/BlurHashSharp/releases)
- [Commits](https://github.com/Bond-009/BlurHashSharp/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-28 12:00:43 +00:00
MrTimscampi
226e517f11 Update SkiaSharp.NativeAssets.Linux to 2.80.2 2020-09-18 10:02:15 +02:00
dependabot[bot]
b83b8f5267
Bump SkiaSharp from 2.80.1 to 2.80.2
Bumps SkiaSharp from 2.80.1 to 2.80.2.

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-14 12:02:19 +00:00
David
9165dc3b3a Scale down text if too long 2020-08-22 14:31:28 +02:00
David
d740e7aee6 Increase font size, center text 2020-08-21 20:36:56 +02:00
David
a3020f2917 Use backdrop with library name as library thumbnail 2020-08-21 19:53:55 +02:00
cvium
1dcc678a6a Fix collages 2020-08-09 22:59:31 +02:00
Erwin de Haan
0f43780c8c
Apply suggestions from code review
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2020-08-02 12:43:25 +02:00
Erwin de Haan
44aca4dc6f Formatting in SkiaEncoder.cs 2020-07-31 22:12:20 +02:00
Erwin de Haan
526eea41f0 Add a note on the convolutional matrix filter. 2020-07-31 22:02:16 +02:00
Erwin de Haan
af38e5469f
Update Jellyfin.Drawing.Skia/SkiaEncoder.cs indentation.
Co-authored-by: Cody Robibero <cody@robibe.ro>
2020-07-31 21:33:25 +02:00
Erwin de Haan
7ce99aaf78 Update SkiaSharp to 2.80.1 and replace resize code.
This fixed the blurry resized images in the Web UI.
2020-07-31 21:20:05 +02:00
cvium
af274de77e Update BlurHashSharp and set max size to 128x128 2020-07-30 22:50:13 +02:00
Patrick Barron
36b05157f0 Rewrite CropWhitespace 2020-07-19 18:06:12 -04:00
Patrick Barron
4a356efa2c Make constructor one line 2020-07-19 17:59:54 -04:00
Patrick Barron
b51a10948a Rewrite OrientImage 2020-07-19 17:59:33 -04:00
Patrick Barron
2569793ff0 Reuse paint objects. 2020-07-19 14:39:11 -04:00
Patrick Barron
d983d65d8a Simplify return statements 2020-07-19 14:18:23 -04:00
Patrick Barron
a9806d8f4a Convert to switch expressions 2020-07-19 14:16:33 -04:00
Patrick Barron
1be3e1e037 Remove unnecessary base constructor calls. 2020-07-19 14:14:44 -04:00
Patrick Barron
87b8a8d7c7 Simplify arithmetic 2020-07-19 14:13:56 -04:00
Patrick Barron
bd77f1e84f Remove redundant casts 2020-07-19 14:13:18 -04:00
Patrick Barron
196e8e131a Convert to using declarations 2020-07-19 14:12:53 -04:00
dkanada
403cd3205f
Merge pull request #3254 from crobibero/ilogger
Use typed logger where possible
2020-06-13 00:29:43 +09:00
dependabot[bot]
00b340557f
Bump SkiaSharp.NativeAssets.Linux from 1.68.1 to 1.68.3
Bumps SkiaSharp.NativeAssets.Linux from 1.68.1 to 1.68.3.

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-11 12:18:07 +00:00
dependabot[bot]
81b1803153
Bump SkiaSharp from 1.68.1 to 1.68.3
Bumps SkiaSharp from 1.68.1 to 1.68.3.

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-11 10:30:13 +00:00
crobibero
44957c5a9a Use typed logger where possible 2020-06-05 18:15:56 -06:00
dkanada
8d7e9ab515 minor refactoring 2020-06-04 21:30:09 +09:00
Vasily
26eef1bbf8 Move logic of computing Blurhash components to ImageProcessor
Also rename last few instances of GetImageHash to GetImageBlurHash for clarity
2020-06-01 18:12:49 +03:00
Vasily
a76cee7a95 Update BlurHashSharp to 1.0.1, remove workaround 2020-05-28 17:23:16 +03:00
Vasily
f30b07130f Workaround a bug in BlurHashSharp 2020-05-27 19:29:57 +03:00
Vasily
f575415e0b Pick blurhash sizes depending on image aspect ratio 2020-05-26 02:33:52 +03:00
Vasily
3fb4c1356c Make blurhash be computed during regular scans if it was not already computed 2020-05-20 23:50:17 +03:00
Vasily
186b7f303c More small optimizations 2020-05-19 15:08:43 +03:00
Vasily
f18293bf76 Switch to BlurHashSharp lib which should be faster 2020-05-19 13:46:00 +03:00
Jesús Higueras
b9fc0d2628 Add BlurHash support to backend 2020-05-18 23:21:37 +03:00
Bond_009
118f30059c Merge branch 'master' into nullable4 2020-04-23 11:29:19 +02:00
Bond-009
d744d7d234 Merge branch 'master' into register-services-correctly 2020-04-22 13:05:03 -04:00
Mark Monteiro
c5f163293f Add <ProjectGuid> properties to all project files
This is required for SonarCloud analysis to run
2020-04-21 16:21:09 -04:00
Bond_009
2fcbc2a5b8 Enable nullabe reference types for Emby.Drawing and Jellyfin.Drawing.Skia 2020-04-05 21:19:04 +02:00
Mark Monteiro
07cebbeae2 Register and construct IImageProcessor, SqliteItemRepository and IImageEncoder correctly 2020-04-04 17:12:24 -04:00
dkanada
5a816f0b22
Merge pull request #2731 from Bond-009/minor2
Minor improvements
2020-04-03 01:41:05 +09:00
Bond_009
4419587c2a Minor improvements 2020-04-01 15:30:53 +02:00
Unknown
55ddda09c4 Update Jellyfin.SkiaSharp.NativeAssets.LinuxArm to version 1.68.1 2020-03-31 08:25:35 +02:00
Bond-009
a2490a7ae5
Merge branch 'master' into images 2020-02-12 17:41:46 +01:00
Bond_009
87d2479b78 Fix warnings 2020-01-31 22:26:53 +01:00
Bond_009
2186df8ac4 Update deps 2020-01-28 22:42:07 +01:00
Bond_009
ddf9b38799 Simplify image processing by removing image enhancers 2020-01-21 20:26:30 +01:00
Mark Monteiro
47805d89fe Set CA1032 (Implement standard exception constructors) severity to info globally
This replaces the existing [SurpressMessage] attribute
2019-12-14 16:01:24 +01:00
Mark Monteiro
4c30557527 Remove commented code 2019-12-14 15:48:35 +01:00
Mark Monteiro
f7eef1aa7f Use the correct verbiage for documenting thrown exceptions 2019-12-14 15:47:35 +01:00
Mark Monteiro
c1c1672d0f Fix remaining StyleCop warnings 2019-12-14 12:20:52 +01:00
Mark Monteiro
c05933234a Enable TreatWarningsAsErrors flag is project file 2019-12-14 11:46:25 +01:00
Mark Monteiro
2c3e1b8562 Enable StyleCop analyzer and fix existing issues 2019-12-14 11:04:22 +01:00
Mark Monteiro
b8c8d45b8d Enable Serilog and multithreading analyzer 2019-12-14 10:53:54 +01:00
Mark Monteiro
0cf9e59d5a Enable FxCop Analysis and fix issues 2019-12-13 21:17:05 +01:00
Mark Monteiro
88928118eb Add missing documentation in Jellyfun.Drawing.Skia 2019-12-13 20:57:23 +01:00
Bond_009
a245f5a0d4 Rewrite hex encoder/decoder 2019-11-01 17:52:29 +01:00
Bond-009
318b9949f2 Improve Skia error handling (#1752) 2019-09-15 00:27:42 -04:00
Bond_009
838e5d05d5 Document all public/internal members of Emby.Drawing
Forces all new public/internal members to be documented.
Enables TreatWarningsAsErrors for Emby.Drawing
2019-08-11 16:52:37 +02:00
Bond-009
82f041d050
Merge branch 'master' into release-10.3.z 2019-07-06 23:08:52 +02:00
DrPandemic
394d96246b
Check path before opening image 2019-06-24 20:13:07 -04:00
Bond_009
aa30227545 Improve main code flow
Improved the way how some parts of the code depend on eachother
Fixed some style issues
2019-06-09 23:51:52 +02:00
Erwin de Haan
21cc38fcf4 Adjusted AssemblyCopyright attribute values. 2019-03-14 22:17:56 +01:00
Erwin de Haan
ee7bf86e0f Adjusted the Product Name so the User Agent is correct/better. 2019-03-14 22:11:47 +01:00
dkanada
47095e6cf8 move a variable out of for loop 2019-03-09 11:17:02 +09:00
dkanada
e498e47109 remove mirror images from library thumbnail 2019-03-08 18:39:41 +09:00
Bill Thornton
41df94115f Update image overlays to use Jellyfin blue 2019-03-04 22:36:23 -05:00
Bond-009
43cf11aa35 Change discards 2019-02-16 00:42:56 +01:00
Bond_009
70c85925af Move some arrays to generics 2019-02-06 22:58:12 +01:00
Bond-009
1ea219bf3f
Merge branch 'master' into culture 2019-01-30 16:57:15 +01:00
Erwin de Haan
581a7fe078 Unwrapped MoveDirectory, DirectoryExists, FileExists & removed MoveFile 2019-01-28 22:10:00 +01:00
Erwin de Haan
a430568082 Unwrapped OpenRead and CopyFile 2019-01-28 22:09:58 +01:00
Erwin de Haan
d7c6d16250 Unwrapped CreateDirectory and DeleteDirectory 2019-01-28 22:09:56 +01:00
Erwin de Haan
3a831994f6 Unwrapped GetDirectoryName and DirectorySeperatorChar 2019-01-28 22:06:34 +01:00
Erwin de Haan
42e0b32c7d Added AssemblyInfo for Jellyfin.Drawing.Skia 2019-01-27 16:08:51 +01:00
Bond_009
a709cbdc64 Fix more analyzer warnings 2019-01-27 12:12:44 +01:00
Bond_009
bb056f4b59 Cleanup 2019-01-26 21:10:19 +01:00
Bond_009
ce11869a1a Move Skia back into it's own project 2019-01-26 20:43:13 +01:00