Skip to content

Commit 52ac410

Browse files
committed
v0.11
1 parent 47980ef commit 52ac410

File tree

6 files changed

+15
-17
lines changed

6 files changed

+15
-17
lines changed

doc/docfx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"src": "../",
77
"files": [
8-
"out/bin/MagicScaler/Dist/**\/PhotoSauce.MagicScaler.dll"
8+
"out/bin/MagicScaler/Dist/netcoreapp3.0/PhotoSauce.MagicScaler.dll"
99
]
1010
}
1111
],

src/MagicScaler/Core/Enums.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ public enum FileFormat
8181
public enum ColorProfileMode
8282
{
8383
/// <summary>Convert the input image to a well-known RGB color space during processing. A minimal compatible color profile will be embedded unless the output image is in the the sRGB color space.</summary>
84-
/// <include file='Docs/Remarks.xml' path='doc/member[@name="ColorProfileMode"]/*'/>
84+
/// <include file='Docs/Remarks.xml' path='doc/member[@name="ColorProfileMode.Normalize"]/*'/>
8585
Normalize,
8686
/// <summary>Convert the input image to a well-known RGB color space during processing. A minimal compatible color profile will be embedded for the output color space, including sRGB.</summary>
87-
/// <include file='Docs/Remarks.xml' path='doc/member[@name="ColorProfileMode"]/*'/>
87+
/// <include file='Docs/Remarks.xml' path='doc/member[@name="ColorProfileMode.Normalize"]/*'/>
8888
NormalizeAndEmbed,
89-
/// <summary>Preserve the input image color space during processing. Embed the source image's ICC profile in the output image. If the output format does not support embedded profiles, it will be discarded.</summary>
90-
/// <ramarks>Be aware that the embedded profile may be very large -- in the case of thumbnails, often larger than the thumbnail image itself.</ramarks>
89+
/// <summary>Preserve the input image color space during processing and embed the source image's ICC profile in the output image. CMYK images will be converted to Adobe RGB.</summary>
90+
/// <include file='Docs/Remarks.xml' path='doc/member[@name="ColorProfileMode.Preserve"]/*'/>
9191
Preserve,
9292
/// <summary>Convert the input image to the <a href="https://en.wikipedia.org/wiki/SRGB">sRGB color space</a> during processing. Output an untagged sRGB image.</summary>
9393
ConvertToSrgb,

src/MagicScaler/Docs/Remarks.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,17 @@
5454
or the <a href="https://docs.microsoft.com/en-us/windows/win32/wic/-wic-codec-metadataquerylanguage">Metadata Query Language Overview</a> for explicit path syntax.
5555
</remarks>
5656
</member>
57-
<member name="ColorProfileMode">
57+
<member name="ColorProfileMode.Normalize">
5858
<remarks>
5959
Possible output color spaces are <a href="https://en.wikipedia.org/wiki/SRGB">sRGB</a>, <a href="https://en.wikipedia.org/wiki/Adobe_RGB_color_space">Adobe RGB (1998)</a>,
6060
or <a href="https://en.wikipedia.org/wiki/Display_P3">Display P3</a>.
6161
An output color space other than sRGB will be used only if the input image is in an alternate color space and the output codec supports embedding an ICC profile.
6262
</remarks>
6363
</member>
64+
<member name="ColorProfileMode.Preserve">
65+
<remarks>
66+
Be aware that the embedded profile may be very large -- in the case of thumbnails, often larger than the thumbnail image itself.
67+
If the output format does not support embedded profiles, no color space conversion will be performed, and the profile will be discarded.
68+
</remarks>
69+
</member>
6470
</doc>

src/ManagedCodecs/ManagedCodecs.csproj

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,12 @@
22

33
<PropertyGroup>
44
<VersionPrefix>0.0.1</VersionPrefix>
5-
<TargetFrameworks>net46;net472;netcoreapp2.1;netcoreapp3.1;netstandard2.0;netstandard2.1</TargetFrameworks>
5+
<TargetFrameworks>net461;net472;netcoreapp2.1;netcoreapp3.1;netstandard2.0;netstandard2.1</TargetFrameworks>
66
</PropertyGroup>
77

88
<ItemGroup>
99
<ProjectReference Include="..\MagicScaler\MagicScaler.csproj" />
10-
</ItemGroup>
11-
12-
<PropertyGroup>
13-
<RestoreAdditionalProjectSources>https://www.myget.org/F/sixlabors/api/v3/index.json</RestoreAdditionalProjectSources>
14-
</PropertyGroup>
15-
16-
<ItemGroup>
17-
<PackageReference Include="SixLabors.ImageSharp" Version="1.0.0-unstable*" />
10+
<PackageReference Include="SixLabors.ImageSharp" Version="1.0.0-rc0002" />
1811
</ItemGroup>
1912

2013
</Project>

src/ManagedCodecs/TargaCodec.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Runtime.CompilerServices;
44

55
using SixLabors.ImageSharp;
6-
using SixLabors.ImageSharp.Advanced;
76
using SixLabors.ImageSharp.PixelFormats;
87

98
using PhotoSauce.MagicScaler;

src/WebRSize/WebRSize.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<VersionPrefix>0.5.2</VersionPrefix>
4+
<VersionPrefix>0.6.0</VersionPrefix>
55
<TargetFrameworks>net461;net472</TargetFrameworks>
66
</PropertyGroup>
77

0 commit comments

Comments
 (0)