From d1803b58e49b9084e5929ab6f47002b85c5bd04c Mon Sep 17 00:00:00 2001 From: Salih Date: Mon, 29 May 2023 12:47:07 +0300 Subject: [PATCH 1/3] Add Installation section for providers --- docs/en/Image-Manipulation.md | 77 +++++++++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 3 deletions(-) diff --git a/docs/en/Image-Manipulation.md b/docs/en/Image-Manipulation.md index 91f7c11c1e..40cbc57d36 100644 --- a/docs/en/Image-Manipulation.md +++ b/docs/en/Image-Manipulation.md @@ -196,7 +196,31 @@ public enum ImageProcessState : byte ## Magick.NET Provider -`Volo.Abp.Imaging.MagickNet` NuGet package implements the image operations using the [Magick.NET](https://github.com/dlemstra/Magick.NET) library. If you want to use that library as image process provider, add the `Volo.Abp.Imaging.MagickNet` NuGet package to your project, then add `AbpImagingMagickNetModule` to your [module](Module-Development-Basics.md)'s dependency list: +`Volo.Abp.Imaging.MagickNet` NuGet package implements the image operations using the [Magick.NET](https://github.com/dlemstra/Magick.NET) library. + +## Installation + +It is suggested to use the [ABP CLI](CLI.md) to install this package. + +### Using the ABP CLI + +Open a command line terminal in the folder of your project (.csproj file) and type the following command: + +```bash +abp add-package Volo.Abp.Imaging.MagickNet +``` + +### Manual Installation + +If you want to manually install; + +1. Add the [Volo.Abp.Imaging.MagickNet](https://www.nuget.org/packages/Volo.Abp.Imaging.MagickNet) NuGet package to your project: + +``` +Install-Package Volo.Abp.Imaging.MagickNet +``` + +2. Add `AbpImagingMagickNetModule` to your [module](Module-Development-Basics.md)'s dependency list: ```csharp [DependsOn(typeof(AbpImagingMagickNetModule))] @@ -216,7 +240,32 @@ public class MyModule : AbpModule ## ImageSharp Provider -`Volo.Abp.Imaging.ImageSharp` NuGet package implements the image operations using the [ImageSharp](https://github.com/SixLabors/ImageSharp) library. If you want to use that library as image process provider, add the `Volo.Abp.Imaging.ImageSharp` NuGet package to your project, then add `AbpImagingImageSharpModule` to your [module](Module-Development-Basics.md)'s dependency list: +`Volo.Abp.Imaging.ImageSharp` NuGet package implements the image operations using the [ImageSharp](https://github.com/SixLabors/ImageSharp) library. + +## Installation + +It is suggested to use the [ABP CLI](CLI.md) to install this package. + +### Using the ABP CLI + +Open a command line terminal in the folder of your project (.csproj file) and type the following command: + +```bash +abp add-package Volo.Abp.Imaging.ImageSharp +``` + +### Manual Installation + +If you want to manually install; + +1. Add the [Volo.Abp.Imaging.ImageSharp](https://www.nuget.org/packages/Volo.Abp.Imaging.ImageSharp) NuGet package to your project: + +``` +Install-Package Volo.Abp.Imaging.ImageSharp +``` + +2. Add `AbpImagingImageSharpModule` to your [module](Module-Development-Basics.md)'s dependency list: + ```csharp [DependsOn(typeof(AbpImagingImageSharpModule))] @@ -259,7 +308,29 @@ Configure(options => `Volo.Abp.Imaging.AspNetCore` NuGet package defines attributes for controller actions that can automatically compress and/or resize uploaded files. -To use the ASP.NET Core integration, add the `Volo.Abp.Imaging.AspNetCore` NuGet package to your project and add the `AbpImagingAspNetCoreModule` module to your module's dependency list: +## Installation + +It is suggested to use the [ABP CLI](CLI.md) to install this package. + +### Using the ABP CLI + +Open a command line terminal in the folder of your project (.csproj file) and type the following command: + +```bash +abp add-package Volo.Abp.Imaging.AspNetCore +``` + +### Manual Installation + +If you want to manually install; + +1. Add the [Volo.Abp.Imaging.AspNetCore](https://www.nuget.org/packages/Volo.Abp.Imaging.AspNetCore) NuGet package to your project: + +``` +Install-Package Volo.Abp.Imaging.AspNetCore +``` + +2. Add `AbpImagingAspNetCoreModule` to your [module](Module-Development-Basics.md)'s dependency list: ```csharp [DependsOn(typeof(AbpImagingAspNetCoreModule))] From 0a4cbac8bb5009a6e24af85f7a1584b0b4ebb82e Mon Sep 17 00:00:00 2001 From: Salih Date: Mon, 29 May 2023 13:04:22 +0300 Subject: [PATCH 2/3] Update Image-Manipulation.md --- docs/en/Image-Manipulation.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/en/Image-Manipulation.md b/docs/en/Image-Manipulation.md index 40cbc57d36..ef58bf372e 100644 --- a/docs/en/Image-Manipulation.md +++ b/docs/en/Image-Manipulation.md @@ -5,7 +5,7 @@ ABP Framework provides services to compress and resize images and implements the ## Installation -It is suggested to use the [ABP CLI](CLI.md) to install this package. +You can add this package to your application by either using the [ABP CLI](CLI.md) or manually installing it. Using the [ABP CLI](CLI.md) is the recommended approach. ### Using the ABP CLI @@ -200,7 +200,7 @@ public enum ImageProcessState : byte ## Installation -It is suggested to use the [ABP CLI](CLI.md) to install this package. +You can add this package to your application by either using the [ABP CLI](CLI.md) or manually installing it. Using the [ABP CLI](CLI.md) is the recommended approach. ### Using the ABP CLI @@ -244,7 +244,7 @@ public class MyModule : AbpModule ## Installation -It is suggested to use the [ABP CLI](CLI.md) to install this package. +You can add this package to your application by either using the [ABP CLI](CLI.md) or manually installing it. Using the [ABP CLI](CLI.md) is the recommended approach. ### Using the ABP CLI @@ -310,7 +310,7 @@ Configure(options => ## Installation -It is suggested to use the [ABP CLI](CLI.md) to install this package. +You can add this package to your application by either using the [ABP CLI](CLI.md) or manually installing it. Using the [ABP CLI](CLI.md) is the recommended approach. ### Using the ABP CLI From 4f7e0794e65b45e68d3d00874d823bad69ec1881 Mon Sep 17 00:00:00 2001 From: Salih Date: Mon, 29 May 2023 13:06:23 +0300 Subject: [PATCH 3/3] Update Image-Manipulation.md --- docs/en/Image-Manipulation.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/en/Image-Manipulation.md b/docs/en/Image-Manipulation.md index ef58bf372e..7aff8cc1df 100644 --- a/docs/en/Image-Manipulation.md +++ b/docs/en/Image-Manipulation.md @@ -116,6 +116,8 @@ public enum ImageResizeMode : byte } ``` +> See the [ImageSharp documentation](https://docs.sixlabors.com/api/ImageSharp/SixLabors.ImageSharp.Processing.ResizeMode.html) for more information about the resize modes. + ### ImageResizeResult The `ImageResizeResult` is a generic class that is used to return the result of the image resize operations. It has the following properties: