Skip to content

Commit a3b8a65

Browse files
committed
Fix typo in AllPlatforms nupkg description and fix code lints
1 parent 8c8f835 commit a3b8a65

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

src/Imageflow.AllPlatforms/Imageflow.AllPlatforms.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<PackageProjectUrl>https://github.com/imazen/imageflow-dotnet</PackageProjectUrl>
1515
<RepositoryUrl>https://github.com/imazen/imageflow-dotnet.git</RepositoryUrl>
1616
<RepositoryBranch>main</RepositoryBranch>
17-
<Description>Imageflow processes and optimizes images at incredible speeds. Imageflow.AllPlatforms is Compatible with .NET Core and .NET 5+. For .NET 4.x and earlier, use the Imageflow.Net and Imageflow.NativeRuntime.[your platform] packages separately.</Description>
17+
<Description>Imageflow processes and optimizes images at incredible speeds. Imageflow.AllPlatforms is compatible with .NET Core and .NET 5+. For .NET 4.x and earlier, use the Imageflow.Net and Imageflow.NativeRuntime.[your platform] packages separately.</Description>
1818
<PackageTags>Image;Resize;Optimize;Crop;Gif;Jpg;Jpeg;Bitmap;Png;Core;WebP;ImageResizer;Imageflow;Rotate;Imaging;Crunch</PackageTags>
1919
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2020
<Authors>lilith;imazen</Authors>

src/Imageflow/Bindings/ImageInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal static ImageInfo FromDynamic(dynamic imageInfo)
1313
ImageHeight = imageInfo.image_height.Value,
1414
PreferredMimeType = imageInfo.preferred_mime_type.Value,
1515
PreferredExtension = imageInfo.preferred_extension.Value,
16-
FrameDecodesInto = Enum.Parse(typeof(Imageflow.Fluent.PixelFormat), imageInfo.frame_decodes_into.Value,
16+
FrameDecodesInto = Enum.Parse(typeof(Fluent.PixelFormat), imageInfo.frame_decodes_into.Value,
1717
true)
1818
};
1919

src/Imageflow/Bindings/NativeLibraryLoading.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ internal static class NativeLibraryLoader
389389
/// <typeparam name="T"></typeparam>
390390
/// <param name="basename"></param>
391391
/// <param name="invokingOperation"></param>
392+
/// <param name="customSearchDirectories"></param>
392393
/// <returns></returns>
393394
public static T FixDllNotFoundException<T>(string basename, Func<T> invokingOperation, IEnumerable<string> customSearchDirectories = null)
394395
{

src/Imageflow/Fluent/DecodeCommands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public class DecodeCommands
1717

1818
public Size? WebPDownscaleHint { get; set; }
1919

20-
public bool DiscardColorProfile { get; set; } = false;
20+
public bool DiscardColorProfile { get; set; }
2121

22-
public bool IgnoreColorProfileErrors { get; set; } = false;
22+
public bool IgnoreColorProfileErrors { get; set; }
2323

2424
public DecodeCommands SetJpegDownscaling(int targetWidthHint,
2525
int targetHeightHint, DecoderDownscalingMode mode)

src/Imageflow/Fluent/WatermarkFitBox.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public WatermarkFitBox(WatermarkAlign relativeTo, float x1, float y1, float x2,
1818
Y2 = y2;
1919
}
2020
public WatermarkAlign RelativeTo { get; set; } = WatermarkAlign.Image;
21-
public float X1 { get; set; } = 0;
22-
public float Y1 { get; set; } = 0;
21+
public float X1 { get; set; }
22+
public float Y1 { get; set; }
2323
public float X2 { get; set; } = 100;
2424
public float Y2 { get; set; } = 100;
2525

src/Imageflow/Fluent/WatermarkMargins.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ public WatermarkMargins(WatermarkAlign relativeTo, uint left, uint top, uint rig
2929
}
3030

3131
public WatermarkAlign RelativeTo { get; set; } = WatermarkAlign.Image;
32-
public uint Left { get; set; } = 0;
33-
public uint Top { get; set; } = 0;
34-
public uint Right { get; set; } = 0;
35-
public uint Bottom { get; set; } = 0;
32+
public uint Left { get; set; }
33+
public uint Top { get; set; }
34+
public uint Right { get; set; }
35+
public uint Bottom { get; set; }
3636

3737
public WatermarkMargins SetRelativeTo(WatermarkAlign relativeTo)
3838
{

tests/Imageflow.Test/TestApi.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.ComponentModel;
43
using System.Drawing;
54
using System.IO;
65
using System.Linq;
@@ -209,7 +208,7 @@ public async Task TestEncodeSizeLimit()
209208
{
210209
var e = await Assert.ThrowsAsync<ImageflowException>(async () =>
211210
{
212-
var r = await b.Decode(imageBytes)
211+
await b.Decode(imageBytes)
213212
.ResizerCommands("width=3&height=2&mode=stretch&scale=both")
214213
.EncodeToBytes(new GifEncoder())
215214
.Finish()

tests/Imageflow.Test/TestSrgbColor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class TestSrgbColor
88
[Fact]
99
public void TestFromHex()
1010
{
11-
foreach (var color in new string[] {"1234", "11223344"})
11+
foreach (var color in new [] {"1234", "11223344"})
1212
{
1313
var parsed = SrgbColor.FromHex(color);
1414
Assert.Equal("11", $"{parsed.R:x2}");
@@ -17,7 +17,7 @@ public void TestFromHex()
1717
Assert.Equal("44", $"{parsed.A:x2}");
1818
}
1919

20-
foreach (var color in new string[] {"123", "112233"})
20+
foreach (var color in new [] {"123", "112233"})
2121
{
2222
var parsed = SrgbColor.FromHex(color);
2323
Assert.Equal("11", $"{parsed.R:x2}");

0 commit comments

Comments
 (0)