Skip to content

Commit

Permalink
Merge pull request #1 from SixLabors/beta-1
Browse files Browse the repository at this point in the history
[WIP] beta1 release
  • Loading branch information
tocsoft authored Sep 14, 2017
2 parents 9edd7eb + d4db478 commit a06fddb
Show file tree
Hide file tree
Showing 22 changed files with 47 additions and 49 deletions.
2 changes: 1 addition & 1 deletion NuGet.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="myget.org imagesharp" value="https://www.myget.org/F/imagesharp/api/v3/index.json" />
<add key="myget.org sixlabors" value="https://www.myget.org/F/sixlabors/api/v3/index.json" />
<add key="myget.org dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
Expand Down
20 changes: 10 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ test_script:
after_test:
- cmd: appveyor PushArtifact "artifacts\SixLabors.ImageSharp.Web.%GitVersion_NuGetVersion%.nupkg"

#deploy:
# # MyGet Deployment for builds & releases
# - provider: NuGet
# server: https://www.myget.org/F/imagesharp/api/v2/package
# symbol_server: https://www.myget.org/F/imagesharp/symbols/api/v2/package
# api_key:
# secure: fz0rUrt3B1HczUC1ZehwVsrFSWX9WZGDQoueDztLte9/+yQG+BBU7UrO+coE8lUf
# artifact: /.*\.nupkg/
# on:
# branch: master
deploy:
# MyGet Deployment for builds & releases
- provider: NuGet
server: https://www.myget.org/F/sixlabors/api/v2/package
symbol_server: https://www.myget.org/F/sixlabors/symbols/api/v2/package
api_key:
secure: V/lEHP0UeMWIpWd0fiNlY2IgbCnJKQlGdRksECdJbOBdaE20Fl0RNL7WyqHe02o4
artifact: /.*\.nupkg/
on:
branch: master
10 changes: 5 additions & 5 deletions samples/ImageSharp.Web.Sample/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

namespace SixLabors.ImageSharp.Web.Sample
{
using ImageSharp.Web.Caching;
using ImageSharp.Web.Commands;
using ImageSharp.Web.DependencyInjection;
using ImageSharp.Web.Processors;
using ImageSharp.Web.Resolvers;
using SixLabors.ImageSharp.Web.Caching;
using SixLabors.ImageSharp.Web.Commands;
using SixLabors.ImageSharp.Web.DependencyInjection;
using SixLabors.ImageSharp.Web.Processors;
using SixLabors.ImageSharp.Web.Resolvers;

public class Startup
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp.Web/Caching/CacheHash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Security.Cryptography;
using System.Text;
using ImageSharp;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Web.Helpers;

namespace SixLabors.ImageSharp.Web.Caching
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp.Web/Caching/PhysicalFileSystemCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using ImageSharp.Memory;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.FileProviders;
using SixLabors.ImageSharp.Memory;

namespace SixLabors.ImageSharp.Web.Caching
{
Expand Down
3 changes: 1 addition & 2 deletions src/ImageSharp.Web/Commands/Converters/Rgba32Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
using System.Globalization;
using System.Reflection;
using System.Text.RegularExpressions;
using ImageSharp;
using ImageSharp.PixelFormats;
using SixLabors.ImageSharp.PixelFormats;

namespace SixLabors.ImageSharp.Web.Commands.Converters
{
Expand Down
4 changes: 2 additions & 2 deletions src/ImageSharp.Web/Commands/TypeConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0.

using System;
using ImageSharp;
using SixLabors.ImageSharp;

namespace SixLabors.ImageSharp.Web.Commands
{
Expand Down Expand Up @@ -67,7 +67,7 @@ internal static class TypeConstants
};

/// <summary>
/// The <see cref="global::ImageSharp.Rgba32"/> type
/// The <see cref="global::SixLabors.ImageSharp.Rgba32"/> type
/// </summary>
public static readonly Type Rgba32 = typeof(Rgba32);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.

using ImageSharp;
using Microsoft.Extensions.Options;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Web.Middleware;

namespace SixLabors.ImageSharp.Web.DependencyInjection
Expand Down
9 changes: 4 additions & 5 deletions src/ImageSharp.Web/FormattedImage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
using System.Collections.Generic;
using System.IO;
using System.Text;
using ImageSharp;
using ImageSharp.Formats;
using ImageSharp.PixelFormats;
using ISImage = ImageSharp.Image;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.PixelFormats;

namespace SixLabors.ImageSharp.Web
{
Expand Down Expand Up @@ -69,7 +68,7 @@ public void Dispose()
/// <returns>A formatted image</returns>
public static FormattedImage Load(Configuration configuation, byte[] source)
{
var image = ISImage.Load(configuation, source, out IImageFormat format);
var image = ImageSharp.Image.Load(configuation, source, out IImageFormat format);
return new FormattedImage(image, format);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/ImageSharp.Web/Helpers/FormatHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using System;
using System.IO;
using System.Linq;
using ImageSharp;
using ImageSharp.Formats;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats;

namespace SixLabors.ImageSharp.Web.Helpers
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp.Web/ImageSharp.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
<AdditionalFiles Include="..\..\stylecop.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ImageSharp" Version="1.0.0-alpha9-00194" />
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="1.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="1.1.2" />
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="1.1.2" />
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="1.1.2" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="1.1.2" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="1.1.2" />
<PackageReference Include="SixLabors.ImageSharp" Version="1.0.0-beta0001" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta004">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp.Web/Memory/BufferDataPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Buffers;

namespace ImageSharp.Memory
namespace SixLabors.ImageSharp.Memory
{
/// <summary>
/// Provides a resource pool that enables reusing instances of value type arrays for image data <see cref="T:Byte[]"/>.
Expand Down
4 changes: 2 additions & 2 deletions src/ImageSharp.Web/Middleware/ImageSharpMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using ImageSharp;
using ImageSharp.Memory;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Web.Caching;
using SixLabors.ImageSharp.Web.Commands;
using SixLabors.ImageSharp.Web.Helpers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0.

using System;
using ImageSharp;
using Microsoft.AspNetCore.Http;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Web.Commands;
using SixLabors.ImageSharp.Web.Processors;
using SixLabors.ImageSharp.Web.Resolvers;
Expand Down
4 changes: 2 additions & 2 deletions src/ImageSharp.Web/Processors/BackgroundColorWebProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0.

using System.Collections.Generic;
using ImageSharp;
using Microsoft.Extensions.Logging;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Web.Commands;

namespace SixLabors.ImageSharp.Web.Processors
Expand Down Expand Up @@ -34,7 +34,7 @@ public FormattedImage Process(FormattedImage image, ILogger logger, IDictionary<

if (background != default(Rgba32))
{
image.Image.BackgroundColor(background);
image.Image.Mutate(x => x.BackgroundColor(background));
}

return image;
Expand Down
6 changes: 3 additions & 3 deletions src/ImageSharp.Web/Processors/FormatWebProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

using System.Collections.Generic;
using System.Linq;
using ImageSharp;
using ImageSharp.Formats;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Web.Commands;
using SixLabors.ImageSharp.Web.Middleware;

Expand Down Expand Up @@ -52,7 +52,7 @@ public FormattedImage Process(FormattedImage image, ILogger logger, IDictionary<

if (!string.IsNullOrWhiteSpace(extension))
{
IImageFormat format = this.options.Configuration.FindFormatByFileExtensions(extension);
IImageFormat format = this.options.Configuration.FindFormatByFileExtension(extension);

if (format != null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp.Web/Processors/IImageWebProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0.

using System.Collections.Generic;
using ImageSharp;
using Microsoft.Extensions.Logging;
using SixLabors.ImageSharp;

namespace SixLabors.ImageSharp.Web.Processors
{
Expand Down
6 changes: 3 additions & 3 deletions src/ImageSharp.Web/Processors/ResizeWebProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the Apache License, Version 2.0.

using System.Collections.Generic;
using ImageSharp;
using ImageSharp.Processing;
using Microsoft.Extensions.Logging;
using SixLabors.ImageSharp;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Web.Commands;
using SixLabors.Primitives;

Expand Down Expand Up @@ -72,7 +72,7 @@ public FormattedImage Process(FormattedImage image, ILogger logger, IDictionary<

if (options != null)
{
image.Image.Resize(options);
image.Image.Mutate(x => x.Resize(options));
}

return image;
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp.Web/Processors/WebProcessingExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0.

using System.Collections.Generic;
using ImageSharp;
using Microsoft.Extensions.Logging;
using SixLabors.ImageSharp;

namespace SixLabors.ImageSharp.Web.Processors
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp.Web/Resolvers/PhysicalFileSystemResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using ImageSharp.Memory;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Extensions;
using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Web.Helpers;
using SixLabors.ImageSharp.Web.Middleware;

Expand Down
2 changes: 1 addition & 1 deletion tests/ImageSharp.Web.Tests/Caching/CacheHashTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0.

using System.IO;
using global::ImageSharp;
using global::SixLabors.ImageSharp;
using SixLabors.ImageSharp.Web.Caching;
using Xunit;

Expand Down
4 changes: 2 additions & 2 deletions tests/ImageSharp.Web.Tests/Commands/CommandParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using global::ImageSharp;
using global::ImageSharp.Processing;
using global::SixLabors.ImageSharp;
using global::SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Web.Commands;
using Xunit;

Expand Down

0 comments on commit a06fddb

Please sign in to comment.