Skip to content

Commit a91da76

Browse files
authored
Merge pull request #26 from Erik-White/update-imagesharp-dependency
Update to ImageSharp v3.1.12
2 parents 36c2215 + 0105229 commit a91da76

File tree

1,014 files changed

+1712
-1660
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,014 files changed

+1712
-1660
lines changed

.editorconfig

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Version: 2.1.0 (Using https://semver.org/)
2-
# Updated: 2021-03-03
1+
# Version: 4.1.1 (Using https://semver.org/)
2+
# Updated: 2022-05-23
33
# See https://github.com/RehanSaeed/EditorConfig/releases for release notes.
44
# See https://github.com/RehanSaeed/EditorConfig for updates to this file.
55
# See http://EditorConfig.org for more information about .editorconfig files.
@@ -49,11 +49,11 @@ indent_size = 2
4949
indent_size = 2
5050

5151
# Markdown Files
52-
[*.md]
52+
[*.{md,mdx}]
5353
trim_trailing_whitespace = false
5454

5555
# Web Files
56-
[*.{htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue}]
56+
[*.{htm,html,js,jsm,ts,tsx,cjs,cts,ctsx,mjs,mts,mtsx,css,sass,scss,less,pcss,svg,vue}]
5757
indent_size = 2
5858

5959
# Batch Files
@@ -75,7 +75,7 @@ indent_style = tab
7575

7676
[*.{cs,csx,cake,vb,vbx}]
7777
# Default Severity for all .NET Code Style rules below
78-
dotnet_analyzer_diagnostic.category-style.severity = warning
78+
dotnet_analyzer_diagnostic.severity = warning
7979

8080
##########################################
8181
# Language Rules
@@ -104,8 +104,8 @@ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:war
104104
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning
105105
dotnet_style_parentheses_in_other_operators = always_for_clarity:suggestion
106106
# Expression-level preferences
107-
dotnet_style_object_initializer = true:warning
108-
dotnet_style_collection_initializer = true:warning
107+
dotnet_style_object_initializer = true:error
108+
dotnet_style_collection_initializer = true:error
109109
dotnet_style_explicit_tuple_names = true:warning
110110
dotnet_style_prefer_inferred_tuple_names = true:warning
111111
dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning
@@ -122,21 +122,22 @@ dotnet_style_coalesce_expression = true:warning
122122
dotnet_style_null_propagation = true:warning
123123
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
124124
# File header preferences
125-
file_header_template = Copyright (c) Six Labors.\nLicensed under the Apache License, Version 2.0.
125+
file_header_template = Copyright (c) Six Labors.\nLicensed under the Six Labors Split License.
126126
# SA1636: File header copyright text should match
127127
# Justification: .editorconfig supports file headers. If this is changed to a value other than "none", a stylecop.json file will need to added to the project.
128128
# dotnet_diagnostic.SA1636.severity = none
129129

130130
# Undocumented
131-
dotnet_style_operator_placement_when_wrapping = end_of_line
131+
dotnet_style_operator_placement_when_wrapping = end_of_line:warning
132+
csharp_style_prefer_null_check_over_type_check = true:warning
132133

133134
# C# Style Rules
134135
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/language-rules#c-style-rules
135136
[*.{cs,csx,cake}]
136137
# 'var' preferences
137-
csharp_style_var_for_built_in_types = never
138-
csharp_style_var_when_type_is_apparent = true:warning
139-
csharp_style_var_elsewhere = false:warning
138+
csharp_style_var_for_built_in_types = false:error
139+
csharp_style_var_when_type_is_apparent = false:error
140+
csharp_style_var_elsewhere = false:error
140141
# Expression-bodied members
141142
csharp_style_expression_bodied_methods = true:warning
142143
csharp_style_expression_bodied_constructors = true:warning
@@ -159,7 +160,10 @@ csharp_style_pattern_local_over_anonymous_function = true:warning
159160
csharp_style_deconstructed_variable_declaration = true:warning
160161
csharp_style_prefer_index_operator = true:warning
161162
csharp_style_prefer_range_operator = true:warning
162-
csharp_style_implicit_object_creation_when_type_is_apparent = true:warning
163+
csharp_style_implicit_object_creation_when_type_is_apparent = true:error
164+
# ReSharper inspection severities
165+
resharper_arrange_object_creation_when_type_evident_highlighting = error
166+
resharper_arrange_object_creation_when_type_not_evident_highlighting = error
163167
# "Null" checking preferences
164168
csharp_style_throw_expression = true:warning
165169
csharp_style_conditional_delegate_call = true:warning
@@ -171,6 +175,11 @@ dotnet_diagnostic.IDE0063.severity = suggestion
171175
csharp_using_directive_placement = outside_namespace:warning
172176
# Modifier preferences
173177
csharp_prefer_static_local_function = true:warning
178+
# Primary constructor preferences
179+
csharp_style_prefer_primary_constructors = false:none
180+
# Collection preferences
181+
dotnet_style_prefer_collection_expression = true:error
182+
resharper_use_collection_expression_highlighting =true:error
174183

175184
##########################################
176185
# Unnecessary Code Rules
@@ -200,12 +209,15 @@ dotnet_diagnostic.IDE0059.severity = suggestion
200209
# Organize using directives
201210
dotnet_sort_system_directives_first = true
202211
dotnet_separate_import_directive_groups = false
212+
# Dotnet namespace options
213+
dotnet_style_namespace_match_folder = true:suggestion
214+
dotnet_diagnostic.IDE0130.severity = suggestion
203215

204216
# C# formatting rules
205217
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#c-formatting-rules
206218
[*.{cs,csx,cake}]
207219
# Newline options
208-
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#new-line-options
220+
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#new-line-options
209221
csharp_new_line_before_open_brace = all
210222
csharp_new_line_before_else = true
211223
csharp_new_line_before_catch = true
@@ -214,15 +226,15 @@ csharp_new_line_before_members_in_object_initializers = true
214226
csharp_new_line_before_members_in_anonymous_types = true
215227
csharp_new_line_between_query_expression_clauses = true
216228
# Indentation options
217-
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#indentation-options
229+
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#indentation-options
218230
csharp_indent_case_contents = true
219231
csharp_indent_switch_labels = true
220232
csharp_indent_labels = no_change
221233
csharp_indent_block_contents = true
222234
csharp_indent_braces = false
223235
csharp_indent_case_contents_when_block = false
224236
# Spacing options
225-
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#spacing-options
237+
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#spacing-options
226238
csharp_space_after_cast = false
227239
csharp_space_after_keywords_in_control_flow_statements = true
228240
csharp_space_between_parentheses = false
@@ -246,9 +258,12 @@ csharp_space_before_open_square_brackets = false
246258
csharp_space_between_empty_square_brackets = false
247259
csharp_space_between_square_brackets = false
248260
# Wrap options
249-
# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#wrap-options
261+
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#wrap-options
250262
csharp_preserve_single_line_statements = false
251263
csharp_preserve_single_line_blocks = true
264+
# Namespace options
265+
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#namespace-options
266+
csharp_style_namespace_declarations = file_scoped:warning
252267

253268
##########################################
254269
# .NET Naming Rules

.gitattributes

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,19 @@
6464
# Set explicit file behavior to:
6565
# treat as text
6666
# normalize to Unix-style line endings and
67-
# use a union merge when resoling conflicts
67+
# use a union merge when resolving conflicts
6868
###############################################################################
6969
*.csproj text eol=lf merge=union
7070
*.dbproj text eol=lf merge=union
7171
*.fsproj text eol=lf merge=union
7272
*.ncrunchproject text eol=lf merge=union
7373
*.vbproj text eol=lf merge=union
74+
*.shproj text eol=lf merge=union
7475
###############################################################################
7576
# Set explicit file behavior to:
7677
# treat as text
7778
# normalize to Windows-style line endings and
78-
# use a union merge when resoling conflicts
79+
# use a union merge when resolving conflicts
7980
###############################################################################
8081
*.sln text eol=crlf merge=union
8182
###############################################################################
@@ -87,15 +88,13 @@
8788
*.eot binary
8889
*.exe binary
8990
*.otf binary
90-
*.pbm binary
9191
*.pdf binary
9292
*.ppt binary
9393
*.pptx binary
9494
*.pvr binary
9595
*.snk binary
9696
*.ttc binary
9797
*.ttf binary
98-
*.wbmp binary
9998
*.woff binary
10099
*.woff2 binary
101100
*.xls binary
@@ -119,10 +118,28 @@
119118
*.bmp filter=lfs diff=lfs merge=lfs -text
120119
*.gif filter=lfs diff=lfs merge=lfs -text
121120
*.png filter=lfs diff=lfs merge=lfs -text
121+
*.qoi filter=lfs diff=lfs merge=lfs -text
122122
*.tif filter=lfs diff=lfs merge=lfs -text
123123
*.tiff filter=lfs diff=lfs merge=lfs -text
124124
*.tga filter=lfs diff=lfs merge=lfs -text
125125
*.webp filter=lfs diff=lfs merge=lfs -text
126126
*.dds filter=lfs diff=lfs merge=lfs -text
127127
*.ktx filter=lfs diff=lfs merge=lfs -text
128128
*.ktx2 filter=lfs diff=lfs merge=lfs -text
129+
*.pam filter=lfs diff=lfs merge=lfs -text
130+
*.pbm filter=lfs diff=lfs merge=lfs -text
131+
*.pgm filter=lfs diff=lfs merge=lfs -text
132+
*.ppm filter=lfs diff=lfs merge=lfs -text
133+
*.pnm filter=lfs diff=lfs merge=lfs -text
134+
*.wbmp filter=lfs diff=lfs merge=lfs -text
135+
*.exr filter=lfs diff=lfs merge=lfs -text
136+
*.ico filter=lfs diff=lfs merge=lfs -text
137+
*.cur filter=lfs diff=lfs merge=lfs -text
138+
*.ani filter=lfs diff=lfs merge=lfs -text
139+
*.heic filter=lfs diff=lfs merge=lfs -text
140+
*.hif filter=lfs diff=lfs merge=lfs -text
141+
*.avif filter=lfs diff=lfs merge=lfs -text
142+
###############################################################################
143+
# Handle ICC files by git lfs
144+
###############################################################################
145+
*.icc filter=lfs diff=lfs merge=lfs -text

.github/CONTRIBUTING.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# How to contribute to SixLabors.ImageSharp.Textures
2+
3+
#### **Did you find a bug?**
4+
5+
- Please **ensure the bug was not already reported** by searching on GitHub under [Issues](https://github.com/SixLabors/ImageSharp.Textures/issues).
6+
7+
- If you're unable to find an open issue addressing the problem, please [open a new one](https://github.com/SixLabors/ImageSharp.Textures/issues/new). Be sure to include a **title, the applicable version, a clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring. Please do not hijack existing issues.
8+
9+
#### **Did you write a patch that fixes a bug?**
10+
11+
* Open a new GitHub pull request with the patch.
12+
13+
* Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
14+
15+
* Before submitting, please ensure that your code matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules :cop:.
16+
17+
#### **Do you intend to add a new feature or change an existing one?**
18+
19+
* Suggest your change in the [Ideas Discussions Channel](https://github.com/SixLabors/ImageSharp.Textures/discussions?discussions_q=category%3AIdeas) and start writing code.
20+
21+
* Do not open an issue on GitHub until you have collected positive feedback about the change. GitHub issues are primarily intended for bug reports and fixes.
22+
23+
#### **Building**
24+
25+
* When first cloning the repo, make sure to run `git submodule update --init --recursive` otherwise the submodules (e.g. `shared-infrastructure`) will be missing.
26+
27+
* Run `dotnet build` in the root of the repo, or open the ImageSharp.Textures.sln file in Visual Studio and build from there.
28+
29+
#### **Do you have questions about consuming the library or the source code?**
30+
31+
* Ask any question about how to use SixLabors.ImageSharp in the [Help Discussions Channel](https://github.com/SixLabors/ImageSharp.Textures/discussions?discussions_q=category%3AHelp).
32+
33+
#### Code of Conduct
34+
This project has adopted the code of conduct defined by the [Contributor Covenant](https://contributor-covenant.org/) to clarify expected behavior in our community.
35+
36+
And please remember. SixLabors.ImageSharp is the work of a very, very, small number of developers who struggle balancing time to contribute to the project with family time and work commitments. We encourage you to pitch in and help make our vision of simple accessible image processing available to all. Open Source can only exist with your help.
37+
38+
Thanks for reading!

.github/workflows/build-and-test.yml

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,33 @@ jobs:
1515
matrix:
1616
options:
1717
- os: ubuntu-latest
18-
framework: net5.0
18+
framework: net8.0
1919
runtime: -x64
2020
codecov: false
2121
- os: macos-latest
22-
framework: net5.0
22+
framework: net8.0
2323
runtime: -x64
2424
codecov: false
2525
- os: windows-latest
26-
framework: net5.0
27-
runtime: -x64
28-
codecov: false
29-
- os: ubuntu-latest
30-
framework: netcoreapp3.1
31-
runtime: -x64
32-
codecov: true
33-
- os: macos-latest
34-
framework: netcoreapp3.1
35-
runtime: -x64
36-
codecov: false
37-
- os: windows-latest
38-
framework: netcoreapp3.1
39-
runtime: -x64
40-
codecov: false
41-
- os: windows-latest
42-
framework: netcoreapp2.1
26+
framework: net8.0
4327
runtime: -x64
4428
codecov: false
4529

4630
runs-on: ${{matrix.options.os}}
4731
if: "!contains(github.event.head_commit.message, '[skip ci]')"
4832

4933
steps:
50-
- uses: actions/checkout@v4
34+
- name: Git Config
35+
shell: bash
36+
run: |
37+
git config --global core.autocrlf false
38+
git config --global core.longpaths true
39+
40+
- name: Git Checkout
41+
uses: actions/checkout@v4
42+
with:
43+
fetch-depth: 0
44+
submodules: recursive
5145

5246
# See https://github.com/actions/checkout/issues/165#issuecomment-657673315
5347
- name: Create LFS file list
@@ -66,14 +60,6 @@ jobs:
6660
- name: Install NuGet
6761
uses: NuGet/setup-nuget@v2
6862

69-
- name: Setup Git
70-
shell: bash
71-
run: |
72-
git config --global core.autocrlf false
73-
git config --global core.longpaths true
74-
git fetch --prune --unshallow
75-
git submodule -q update --init --recursive
76-
7763
- name: Setup NuGet Cache
7864
uses: actions/cache@v4
7965
id: nuget-cache
@@ -86,10 +72,7 @@ jobs:
8672
uses: actions/setup-dotnet@v4
8773
with:
8874
dotnet-version: |
89-
6.0.x
90-
5.0.x
91-
3.1.x
92-
2.1.x
75+
8.0.x
9376
9477
- name: Build
9578
shell: pwsh

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ ClientBin/
169169
*.publishsettings
170170
node_modules/
171171
bower_components/
172+
.DS_Store
172173

173174
# RIA/Silverlight projects
174175
Generated_Code/

Directory.Build.props

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,16 @@
1818
<!-- Import the shared global .props file -->
1919
<Import Project="$(MSBuildThisFileDirectory)shared-infrastructure\msbuild\props\SixLabors.Global.props" />
2020

21+
<PropertyGroup>
22+
<LangVersion>12.0</LangVersion>
23+
</PropertyGroup>
24+
25+
<!--
26+
Ensure all custom build configurations based upon "Release" are optimized.
27+
This is easier than setting each project individually.
28+
-->
29+
<PropertyGroup Condition="$(Configuration.StartsWith('Release')) == true">
30+
<Optimize>true</Optimize>
31+
</PropertyGroup>
32+
2133
</Project>

0 commit comments

Comments
 (0)