Updated imgsharp
This commit is contained in:
parent
4719f900ef
commit
2822038123
6 changed files with 70 additions and 47 deletions
|
|
@ -1,27 +1,25 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ImageSharp;
|
||||
using ImageSharp.Drawing;
|
||||
using ImageSharp.PixelFormats;
|
||||
using ImageSharp.Processing;
|
||||
using NLog;
|
||||
using SixLabors.Fonts;
|
||||
using SixLabors.ImageSharp;
|
||||
using SixLabors.ImageSharp.Drawing;
|
||||
using Font = SixLabors.Fonts.Font;
|
||||
using FontFamily = SixLabors.Fonts.FontFamily;
|
||||
using FontStyle = SixLabors.Fonts.FontStyle;
|
||||
using Image = ImageSharp.Image;
|
||||
|
||||
using Rgba32 = SixLabors.ImageSharp.Rgba32;
|
||||
using Image = SixLabors.ImageSharp.Image;
|
||||
|
||||
namespace CatalogLib
|
||||
{
|
||||
public class ImgSharpCreator : IImageProcessor
|
||||
{
|
||||
|
||||
private FileInfo _currentFile;
|
||||
public void Start(FileInfo workFile)
|
||||
{
|
||||
|
|
@ -35,7 +33,8 @@ namespace CatalogLib
|
|||
|
||||
if (PicSettings.Instance.GeneraleRotazioneAutomatica)
|
||||
{
|
||||
image.AutoOrient();
|
||||
image.Mutate(img => img.AutoOrient());
|
||||
//image.AutoOrient();
|
||||
|
||||
//var exif = image.MetaData.ExifProfile;
|
||||
//if (exif != null)
|
||||
|
|
@ -103,7 +102,8 @@ namespace CatalogLib
|
|||
|
||||
//JpegDecoder j = new JpegDecoder();
|
||||
var va = Vector.IsHardwareAccelerated;
|
||||
|
||||
Debug.WriteLine($"Hardware Accelerated: {va}");
|
||||
|
||||
//image.Resize(PicSettings.Instance.FotoLarghezza, PicSettings.Instance.FotoAltezza);
|
||||
|
||||
//image.Resize(2240, 2240);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue