Skip to content

Commit 889dfd5

Browse files
Merge branch 'master' into js/buffered-read
2 parents 94a3ea5 + c0594f7 commit 889dfd5

1,454 files changed

Lines changed: 6026 additions & 2627 deletions

File tree

Some content is hidden

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

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
*.tga binary
108108
*.ttc binary
109109
*.ttf binary
110+
*.webp binary
110111
*.woff binary
111112
*.woff2 binary
112113
*.xls binary

.github/ISSUE_TEMPLATE/ask-question.md

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: "Commercial License : Bug Report"
3+
about: |
4+
Create a report to help us improve the project. For Commercial License holders only.
5+
Please contact help@sixlabors.com for issues requiring private support.
6+
labels: commercial, needs triage
7+
8+
---
9+
10+
11+
### Prerequisites
12+
13+
- [ ] I have written a descriptive issue title
14+
- [ ] I have verified that I am running the latest version of ImageSharp
15+
- [ ] I have verified if the problem exist in both `DEBUG` and `RELEASE` mode
16+
- [ ] I have searched [open](https://github.com/SixLabors/ImageSharp/issues) and [closed](https://github.com/SixLabors/ImageSharp/issues?q=is%3Aissue+is%3Aclosed) issues to ensure it has not already been reported
17+
18+
### Description
19+
<!-- A description of the bug or feature -->
20+
21+
### Steps to Reproduce
22+
<!-- List of steps, sample code, failing test or link to a project that reproduces the behavior -->
23+
24+
### System Configuration
25+
<!-- Tell us about the environment where you are experiencing the bug -->
26+
27+
- ImageSharp version:
28+
- Other ImageSharp packages and versions:
29+
- Environment (Operating system, version and so on):
30+
- .NET Framework version:
31+
- Additional information:
32+
33+
<!-- Thanks for reporting the issue to ImageSharp! -->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Ask a Question
4+
url: https://github.com/SixLabors/ImageSharp/discussions/new?category_id=6331980
5+
about: Ask a question about this project.
6+
- name: Feature Request
7+
url: https://github.com/SixLabors/ImageSharp/discussions/new?category_id=6331981
8+
about: Share ideas for new features for this project.

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
2-
name: Bug report
3-
about: Create a report to help us improve
2+
name: "OSS : Bug Report"
3+
about: Create a report to help us improve the project.
4+
labels: needs triage
45

56
---
67

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

Lines changed: 8 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -52,31 +52,14 @@ jobs:
5252
git fetch --prune --unshallow
5353
git submodule -q update --init --recursive
5454
55-
- name: Fetch Tags for GitVersion
56-
run: |
57-
git fetch --tags
58-
59-
- name: Fetch master for GitVersion
60-
if: github.ref != 'refs/heads/master'
61-
run: git branch --create-reflog master origin/master
62-
63-
- name: Install GitVersion
64-
uses: gittools/actions/setup-gitversion@v0.3
65-
with:
66-
versionSpec: "5.1.x"
67-
68-
- name: Use GitVersion
69-
id: gitversion # step id used as reference for output values
70-
uses: gittools/actions/execute-gitversion@v0.3
71-
7255
- name: Setup DotNet SDK
7356
uses: actions/setup-dotnet@v1
7457
with:
75-
dotnet-version: "3.1.101"
58+
dotnet-version: "3.1.x"
7659

7760
- name: Build
7861
shell: pwsh
79-
run: ./ci-build.ps1 "${{steps.gitversion.outputs.nuGetVersion}}" "${{matrix.options.framework}}"
62+
run: ./ci-build.ps1 "${{matrix.options.framework}}"
8063

8164
- name: Test
8265
shell: pwsh
@@ -85,14 +68,10 @@ jobs:
8568
CI: True
8669
XUNIT_PATH: .\tests\ImageSharp.Tests # Required for xunit
8770

88-
# Avoid "Please provide the repository token to upload reports via `-t :repository-token`"
89-
# https://community.codecov.io/t/whitelist-github-action-servers-to-upload-without-a-token/491/10
90-
# https://github.blesdmm.dns-dynamic.netmunity/t5/GitHub-Actions/Make-secrets-available-to-builds-of-forks/m-p/42814/highlight/true#M5129
9171
- name: Update Codecov
92-
uses: iansu/codecov-action-node@v1.0.0
72+
uses: codecov/codecov-action@v1.0.7
9373
if: matrix.options.codecov == true && startsWith(github.repository, 'SixLabors')
9474
with:
95-
token: 0ef021c7-2679-4012-b42f-4bed33d99450
9675
flags: unittests
9776

9877
Publish:
@@ -116,33 +95,18 @@ jobs:
11695
git fetch --prune --unshallow
11796
git submodule -q update --init --recursive
11897
119-
- name: Fetch Tags for GitVersion
120-
run: |
121-
git fetch --tags
122-
123-
- name: Fetch master for GitVersion
124-
if: github.ref != 'refs/heads/master'
125-
run: git branch --create-reflog master origin/master
126-
127-
- name: Install GitVersion
128-
uses: gittools/actions/setup-gitversion@v0.3
129-
with:
130-
versionSpec: "5.1.x"
131-
132-
- name: Use GitVersion
133-
id: gitversion # step id used as reference for output values
134-
uses: gittools/actions/execute-gitversion@v0.3
135-
13698
- name: Setup DotNet SDK
13799
uses: actions/setup-dotnet@v1
138100
with:
139-
dotnet-version: "3.1.101"
101+
dotnet-version: "3.1.x"
140102

141103
- name: Pack
142104
shell: pwsh
143-
run: ./ci-pack.ps1 "${{steps.gitversion.outputs.nuGetVersion}}"
105+
run: ./ci-pack.ps1
144106

145107
- name: Publish to MyGet
146108
shell: pwsh
147-
run: nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package
109+
run: |
110+
nuget.exe push .\artifacts\*.nupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v2/package
111+
nuget.exe push .\artifacts\*.snupkg ${{secrets.MYGET_TOKEN}} -Source https://www.myget.org/F/sixlabors/api/v3/index.json
148112
# TODO: If github.ref starts with 'refs/tags' then it was tag push and we can optionally push out package to nuget.org

Directory.Build.props

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<!-- Default settings that are used by other settings -->
1414
<PropertyGroup>
1515
<BaseArtifactsPath>$(MSBuildThisFileDirectory)artifacts/</BaseArtifactsPath>
16-
<BaseArtifactsPathSuffix>$(ImageSharpProjectCategory)/$(MSBuildProjectName)</BaseArtifactsPathSuffix>
16+
<BaseArtifactsPathSuffix>$(SixLaborsProjectCategory)/$(MSBuildProjectName)</BaseArtifactsPathSuffix>
1717
<RepositoryUrl Condition="'$(RepositoryUrl)' == ''">https://github.com/SixLabors/ImageSharp/</RepositoryUrl>
1818
</PropertyGroup>
1919

@@ -25,7 +25,6 @@
2525
<DebugType Condition="'$(codecov)' != ''">full</DebugType>
2626
<NullableContextOptions>disable</NullableContextOptions>
2727
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
28-
<SignAssembly>false</SignAssembly>
2928
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
3029
</PropertyGroup>
3130

@@ -45,22 +44,40 @@
4544
-->
4645

4746
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
48-
<DefineConstants>$(DefineConstants);SUPPORTS_MATHF;SUPPORTS_HASHCODE;SUPPORTS_EXTENDED_INTRINSICS;SUPPORTS_SPAN_STREAM;SUPPORTS_ENCODING_STRING;SUPPORTS_RUNTIME_INTRINSICS;SUPPORTS_CODECOVERAGE;SUPPORTS_HOTPATH</DefineConstants>
47+
<DefineConstants>$(DefineConstants);SUPPORTS_MATHF</DefineConstants>
48+
<DefineConstants>$(DefineConstants);SUPPORTS_HASHCODE</DefineConstants>
49+
<DefineConstants>$(DefineConstants);SUPPORTS_EXTENDED_INTRINSICS</DefineConstants>
50+
<DefineConstants>$(DefineConstants);SUPPORTS_SPAN_STREAM</DefineConstants>
51+
<DefineConstants>$(DefineConstants);SUPPORTS_ENCODING_STRING</DefineConstants>
52+
<DefineConstants>$(DefineConstants);SUPPORTS_RUNTIME_INTRINSICS</DefineConstants>
53+
<DefineConstants>$(DefineConstants);SUPPORTS_CODECOVERAGE</DefineConstants>
54+
<DefineConstants>$(DefineConstants);SUPPORTS_HOTPATH</DefineConstants>
4955
</PropertyGroup>
5056
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'">
51-
<DefineConstants>$(DefineConstants);SUPPORTS_MATHF;SUPPORTS_HASHCODE;SUPPORTS_EXTENDED_INTRINSICS;SUPPORTS_SPAN_STREAM;SUPPORTS_ENCODING_STRING;SUPPORTS_CODECOVERAGE</DefineConstants>
57+
<DefineConstants>$(DefineConstants);SUPPORTS_MATHF</DefineConstants>
58+
<DefineConstants>$(DefineConstants);SUPPORTS_HASHCODE</DefineConstants>
59+
<DefineConstants>$(DefineConstants);SUPPORTS_EXTENDED_INTRINSICS</DefineConstants>
60+
<DefineConstants>$(DefineConstants);SUPPORTS_SPAN_STREAM</DefineConstants>
61+
<DefineConstants>$(DefineConstants);SUPPORTS_ENCODING_STRING</DefineConstants>
62+
<DefineConstants>$(DefineConstants);SUPPORTS_CODECOVERAGE</DefineConstants>
5263
</PropertyGroup>
5364
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.0'">
54-
<DefineConstants>$(DefineConstants);SUPPORTS_MATHF;SUPPORTS_CODECOVERAGE</DefineConstants>
65+
<DefineConstants>$(DefineConstants);SUPPORTS_MATHF</DefineConstants>
66+
<DefineConstants>$(DefineConstants);SUPPORTS_CODECOVERAGE</DefineConstants>
5567
</PropertyGroup>
5668
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
57-
<DefineConstants>$(DefineConstants);SUPPORTS_MATHF;SUPPORTS_HASHCODE;SUPPORTS_SPAN_STREAM;SUPPORTS_ENCODING_STRING;SUPPORTS_CODECOVERAGE</DefineConstants>
69+
<DefineConstants>$(DefineConstants);SUPPORTS_MATHF</DefineConstants>
70+
<DefineConstants>$(DefineConstants);SUPPORTS_HASHCODE</DefineConstants>
71+
<DefineConstants>$(DefineConstants);SUPPORTS_SPAN_STREAM</DefineConstants>
72+
<DefineConstants>$(DefineConstants);SUPPORTS_ENCODING_STRING</DefineConstants>
73+
<DefineConstants>$(DefineConstants);SUPPORTS_CODECOVERAGE</DefineConstants>
5874
</PropertyGroup>
5975
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
6076
<DefineConstants>$(DefineConstants);SUPPORTS_CODECOVERAGE</DefineConstants>
6177
</PropertyGroup>
6278
<PropertyGroup Condition="'$(TargetFramework)' == 'net472'">
63-
<DefineConstants>$(DefineConstants);SUPPORTS_EXTENDED_INTRINSICS;SUPPORTS_CODECOVERAGE</DefineConstants>
79+
<DefineConstants>$(DefineConstants);SUPPORTS_EXTENDED_INTRINSICS</DefineConstants>
80+
<DefineConstants>$(DefineConstants);SUPPORTS_CODECOVERAGE</DefineConstants>
6481
</PropertyGroup>
6582

6683
<!-- Default settings that explicitly differ from the Sdk.targets defaults-->
@@ -75,16 +92,21 @@
7592
<VersionSuffix></VersionSuffix>
7693
</PropertyGroup>
7794

95+
<!--MinVer Properties for versioning-->
96+
<PropertyGroup>
97+
<MinVerTagPrefix>v</MinVerTagPrefix>
98+
<MinVerVerbosity>normal</MinVerVerbosity>
99+
</PropertyGroup>
100+
78101
<!-- Default settings that are otherwise undefined -->
79102
<PropertyGroup>
80-
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)shared-infrastructure/SixLabors.snk</AssemblyOriginatorKeyFile>
81-
<Copyright>Copyright © Six Labors and Contributors</Copyright>
103+
<Copyright>Copyright © Six Labors</Copyright>
82104
<Features>strict;IOperation</Features>
83105
<HighEntropyVA>true</HighEntropyVA>
84106
<LangVersion>8.0</LangVersion>
85107
<NeutralLanguage>en</NeutralLanguage>
86108
<OverwriteReadOnlyFiles>true</OverwriteReadOnlyFiles>
87-
<PackageIcon>icon.png</PackageIcon>
109+
<PackageIcon>sixlabors.imagesharp.128.png</PackageIcon>
88110
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
89111
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
90112
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
@@ -95,9 +117,10 @@
95117
<!-- Contains RemoteExecutor. Taken from: https://github.com/dotnet/runtime/blob/master/NuGet.config -->
96118
https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json;
97119
</RestoreSources>
120+
<SignAssembly>true</SignAssembly>
121+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)shared-infrastructure/SixLabors.snk</AssemblyOriginatorKeyFile>
98122
<SixLaborsPublicKey>00240000048000009400000006020000002400005253413100040000010001000147e6fe6766715eec6cfed61f1e7dcdbf69748a3e355c67e9d8dfd953acab1d5e012ba34b23308166fdc61ee1d0390d5f36d814a6091dd4b5ed9eda5a26afced924c683b4bfb4b3d64b0586a57eff9f02b1f84e3cb0ddd518bd1697f2c84dcbb97eb8bb5c7801be12112ed0ec86db934b0e9a5171e6bb1384b6d2f7d54dfa97</SixLaborsPublicKey>
99123
<UseSharedCompilation>true</UseSharedCompilation>
100-
<SignAssembly>true</SignAssembly>
101124
</PropertyGroup>
102125

103126
<!-- Package references and additional files which are consumed by all projects -->
@@ -107,7 +130,7 @@
107130
<PackageReference Include="StyleCop.Analyzers" IsImplicitlyDefined="true" />
108131
<AdditionalFiles Include="$(MSBuildThisFileDirectory)shared-infrastructure\stylecop.json" />
109132
<!--NuGet package icon source-->
110-
<None Include="$(MSBuildThisFileDirectory)shared-infrastructure\branding\icons\imagesharp\sixlabors.imagesharp.128.png" Pack="true" PackagePath="\icon.png" />
133+
<None Include="$(MSBuildThisFileDirectory)shared-infrastructure\branding\icons\imagesharp\sixlabors.imagesharp.128.png" Pack="true" PackagePath="" />
111134
</ItemGroup>
112135

113136
</Project>

Directory.Build.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
<PackageReference Update="StyleCop.Analyzers" PrivateAssets="All" Version="1.1.118" />
2424

2525
<!--Src Dependencies-->
26+
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
27+
<PackageReference Update="MinVer" PrivateAssets="All" Version="2.3.0" />
2628
<PackageReference Update="System.Buffers" Version="4.5.0" />
2729
<PackageReference Update="System.IO.Compression" Version="4.3.0" />
2830
<PackageReference Update="System.IO.UnmanagedMemoryStream" Version="4.3.0" />

GitVersion.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)