Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐ŸŽ Import Image Resizer for Windows #1009

Merged
merged 1 commit into from
Dec 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ __pycache__/
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
ImageResizer/tools/**
!ImageResizer/tools/packages.config

# Tabs Studio
*.tss
Expand Down
85 changes: 85 additions & 0 deletions ImageResizer/ImageResizer.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
๏ปฟ
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{A7268E69-B2B8-4B0D-A47A-CB2AFC705D43}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageResizer", "src\ImageResizer\ImageResizer.csproj", "{2BE46397-4DFA-414C-9BD4-41E4BBF8CB34}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ShellExtensions", "src\ShellExtensions\ShellExtensions.vcxproj", "{0B43679E-EDFA-4DA0-AD30-F4628B308B1B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{03474E84-5425-4E89-9056-AFF15EA7DE57}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImageResizer.Test", "test\ImageResizer.Test\ImageResizer.Test.csproj", "{E0CC7526-D85E-43AC-844F-D5DF0D2F5AB8}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "setup", "setup", "{8E477B70-095E-4C84-BE9B-B347C11688F7}"
EndProject
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Msi", "setup\Msi\Msi.wixproj", "{C6FF3D16-7935-4100-9CA1-2A45A3F7A058}"
EndProject
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "X64Msi", "setup\X64Msi\X64Msi.wixproj", "{EA394F60-7616-4DDB-9F45-60F585460364}"
EndProject
Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Bundle", "setup\Bundle\Bundle.wixproj", "{E75AE740-CE28-40D1-BCFA-547A30EDBF09}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2BE46397-4DFA-414C-9BD4-41E4BBF8CB34}.Debug|x64.ActiveCfg = Debug|Any CPU
{2BE46397-4DFA-414C-9BD4-41E4BBF8CB34}.Debug|x86.ActiveCfg = Debug|Any CPU
{2BE46397-4DFA-414C-9BD4-41E4BBF8CB34}.Debug|x86.Build.0 = Debug|Any CPU
{2BE46397-4DFA-414C-9BD4-41E4BBF8CB34}.Release|x64.ActiveCfg = Release|Any CPU
{2BE46397-4DFA-414C-9BD4-41E4BBF8CB34}.Release|x86.ActiveCfg = Release|Any CPU
{2BE46397-4DFA-414C-9BD4-41E4BBF8CB34}.Release|x86.Build.0 = Release|Any CPU
{0B43679E-EDFA-4DA0-AD30-F4628B308B1B}.Debug|x64.ActiveCfg = Debug|x64
{0B43679E-EDFA-4DA0-AD30-F4628B308B1B}.Debug|x64.Build.0 = Debug|x64
{0B43679E-EDFA-4DA0-AD30-F4628B308B1B}.Debug|x86.ActiveCfg = Debug|Win32
{0B43679E-EDFA-4DA0-AD30-F4628B308B1B}.Debug|x86.Build.0 = Debug|Win32
{0B43679E-EDFA-4DA0-AD30-F4628B308B1B}.Release|x64.ActiveCfg = Release|x64
{0B43679E-EDFA-4DA0-AD30-F4628B308B1B}.Release|x64.Build.0 = Release|x64
{0B43679E-EDFA-4DA0-AD30-F4628B308B1B}.Release|x86.ActiveCfg = Release|Win32
{0B43679E-EDFA-4DA0-AD30-F4628B308B1B}.Release|x86.Build.0 = Release|Win32
{E0CC7526-D85E-43AC-844F-D5DF0D2F5AB8}.Debug|x64.ActiveCfg = Debug|Any CPU
{E0CC7526-D85E-43AC-844F-D5DF0D2F5AB8}.Debug|x86.ActiveCfg = Debug|Any CPU
{E0CC7526-D85E-43AC-844F-D5DF0D2F5AB8}.Debug|x86.Build.0 = Debug|Any CPU
{E0CC7526-D85E-43AC-844F-D5DF0D2F5AB8}.Release|x64.ActiveCfg = Release|Any CPU
{E0CC7526-D85E-43AC-844F-D5DF0D2F5AB8}.Release|x86.ActiveCfg = Release|Any CPU
{E0CC7526-D85E-43AC-844F-D5DF0D2F5AB8}.Release|x86.Build.0 = Release|Any CPU
{C6FF3D16-7935-4100-9CA1-2A45A3F7A058}.Debug|x64.ActiveCfg = Debug|x86
{C6FF3D16-7935-4100-9CA1-2A45A3F7A058}.Debug|x86.ActiveCfg = Debug|x86
{C6FF3D16-7935-4100-9CA1-2A45A3F7A058}.Debug|x86.Build.0 = Debug|x86
{C6FF3D16-7935-4100-9CA1-2A45A3F7A058}.Release|x64.ActiveCfg = Release|x86
{C6FF3D16-7935-4100-9CA1-2A45A3F7A058}.Release|x86.ActiveCfg = Release|x86
{C6FF3D16-7935-4100-9CA1-2A45A3F7A058}.Release|x86.Build.0 = Release|x86
{EA394F60-7616-4DDB-9F45-60F585460364}.Debug|x64.ActiveCfg = Debug|x64
{EA394F60-7616-4DDB-9F45-60F585460364}.Debug|x64.Build.0 = Debug|x64
{EA394F60-7616-4DDB-9F45-60F585460364}.Debug|x86.ActiveCfg = Debug|x64
{EA394F60-7616-4DDB-9F45-60F585460364}.Release|x64.ActiveCfg = Release|x64
{EA394F60-7616-4DDB-9F45-60F585460364}.Release|x64.Build.0 = Release|x64
{EA394F60-7616-4DDB-9F45-60F585460364}.Release|x86.ActiveCfg = Release|x64
{E75AE740-CE28-40D1-BCFA-547A30EDBF09}.Debug|x64.ActiveCfg = Debug|x86
{E75AE740-CE28-40D1-BCFA-547A30EDBF09}.Debug|x86.ActiveCfg = Debug|x86
{E75AE740-CE28-40D1-BCFA-547A30EDBF09}.Debug|x86.Build.0 = Debug|x86
{E75AE740-CE28-40D1-BCFA-547A30EDBF09}.Release|x64.ActiveCfg = Release|x86
{E75AE740-CE28-40D1-BCFA-547A30EDBF09}.Release|x86.ActiveCfg = Release|x86
{E75AE740-CE28-40D1-BCFA-547A30EDBF09}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{2BE46397-4DFA-414C-9BD4-41E4BBF8CB34} = {A7268E69-B2B8-4B0D-A47A-CB2AFC705D43}
{0B43679E-EDFA-4DA0-AD30-F4628B308B1B} = {A7268E69-B2B8-4B0D-A47A-CB2AFC705D43}
{E0CC7526-D85E-43AC-844F-D5DF0D2F5AB8} = {03474E84-5425-4E89-9056-AFF15EA7DE57}
{C6FF3D16-7935-4100-9CA1-2A45A3F7A058} = {8E477B70-095E-4C84-BE9B-B347C11688F7}
{EA394F60-7616-4DDB-9F45-60F585460364} = {8E477B70-095E-4C84-BE9B-B347C11688F7}
{E75AE740-CE28-40D1-BCFA-547A30EDBF09} = {8E477B70-095E-4C84-BE9B-B347C11688F7}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E0CD6FB1-435F-49A6-AAA0-D1E14A8BB64D}
EndGlobalSection
EndGlobal
21 changes: 21 additions & 0 deletions ImageResizer/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) Brice Lambson. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
7 changes: 7 additions & 0 deletions ImageResizer/NuGet.Config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
60 changes: 60 additions & 0 deletions ImageResizer/build.cake
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#tool nuget:?package=xunit.runner.console&version=2.4.1

var target = Argument<string>("target");
var configuration = Argument<string>("configuration");

var platforms = new[] { "x64", "x86" };

Task("Restore")
.Does(
() =>
NuGetRestore("ImageResizer.sln"));

Task("Build")
.IsDependentOn("Restore")
.Does(
() =>
{
foreach (var platform in platforms)
{
MSBuild(
"ImageResizer.sln",
new MSBuildSettings
{
ArgumentCustomization = args => args.Append("/nologo")
}
.SetConfiguration(configuration)
.SetMaxCpuCount(0)
.SetVerbosity(Verbosity.Minimal)
.WithProperty("Platform", platform));
}
});

Task("Clean")
.Does(
() =>
{
foreach (var platform in platforms)
{
MSBuild(
"ImageResizer.sln",
new MSBuildSettings()
.SetConfiguration(configuration)
.WithProperty("Platform", platform)
.WithTarget("Clean"));
}
});

Task("Test")
.IsDependentOn("Build")
.Does(
() =>
XUnit2(
"./test/ImageResizer.Test/bin/" + configuration + "/ImageResizer.Test.dll",
new XUnit2Settings
{
NoAppDomain = true,
ArgumentCustomization = args => args.Append("-nologo")
}));

RunTarget(target);
1 change: 1 addition & 0 deletions ImageResizer/build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@powershell.exe -File build.ps1 %*
Loading