Open CaptainTologist opened 3 years ago
i have this error
SixLabors.ImageSharp.ImageProcessingException: An error occurred when processing the image using CropProcessor
1. See the inner exception for more detail. ---> System.ArgumentOutOfRangeException: Value 0 must be greater than 0.
Název parametru: width
v SixLabors.Guard.ThrowArgumentOutOfRangeException(String parameterName, String message)
v SixLabors.ImageSharp.ImageFrame1..ctor(Configuration configuration, Int32 width, Int32 height, ImageFrameMetadata metadata) v SixLabors.ImageSharp.Processing.Processors.Transforms.CropProcessor
1.1 x) v System.Linq.Enumerable.WhereSelectEnumerableIterator
2.MoveNext()
v System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source) v SixLabors.ImageSharp.Image
1.ValidateFramesAndGetSize(IEnumerable1 frames) v SixLabors.ImageSharp.Image
1..ctor(Configuration configuration, ImageMetadata metadata, IEnumerable1 frames) v SixLabors.ImageSharp.Processing.Processors.Transforms.CropProcessor
1.CreateDestination()
v SixLabors.ImageSharp.Processing.Processors.CloningImageProcessor1.CloneAndApply() --- Konec trasování zásobníku pro vnitřní výjimku --- v SixLabors.ImageSharp.Processing.Processors.CloningImageProcessor
1.CloneAndApply()
v SixLabors.ImageSharp.Processing.DefaultImageProcessorContext1.ApplyProcessor(IImageProcessor processor, Rectangle rectangle) v SixLabors.ImageSharp.Processing.DefaultImageProcessorContext
1.ApplyProcessor(IImageProcessor processor)
v SixLabors.ImageSharp.Processing.CropExtensions.Crop(IImageProcessingContext source, Rectangle cropRectangle)
v RePKG.Application.Texture.TexToImageConverter.<>c__DisplayClass2_0.1 image) v SixLabors.ImageSharp.Processing.ProcessingExtensions.Clone(Image source, Action
1 operation)
v RePKG.Application.Texture.TexToImageConverter.ConvertToGif(ITex tex)
v RePKG.Command.Extract.ConvertToImageAndSave(ITex tex, String path, Boolean overwrite)
v RePKG.Command.Extract.ExtractEntry(PackageEntry entry, String& outputDirectory)
Done`
I have the same problem. Same file Hope it can be solved `PS E:\Tools\WallpaperEngineRePKG\Repkg> .\repkg extract -t -s E:\Tools\WallpaperEngineRePKG\Repkg\source
1 image) 在 SixLabors.ImageSharp.Processing.ProcessingExtensions.Clone(Image source, Action
1 operation)
在 RePKG.Application.Texture.TexToImageConverter.ConvertToGif(ITex tex) 位置 E:\VSProject\repkg-master\RePKG.Application\Texture\TexToImageConverter.cs:行号 103
在 RePKG.Application.Texture.TexToImageConverter.ConvertToImage(ITex tex) 位置 E:\VSProject\repkg-master\RePKG.Application\Texture\TexToImageConverter.cs:行号 20
在 RePKG.Command.Extract.ConvertToImageAndSave(ITex tex, String path, Boolean overwrite) 位置 E:\VSProject\repkg-master\RePKG\Command\Extract.cs:行号 371
在 RePKG.Command.Extract.ExtractTexDirectory(DirectoryInfo directoryInfo) 位置 E:\VSProject\repkg-master\RePKG\Command\Extract.cs:行号 1151 image) 在 SixLabors.ImageSharp.Processing.ProcessingExtensions.Clone(Image source, Action
1 operation)
在 RePKG.Application.Texture.TexToImageConverter.ConvertToGif(ITex tex) 位置 E:\VSProject\repkg-master\RePKG.Application\Texture\TexToImageConverter.cs:行号 103
在 RePKG.Application.Texture.TexToImageConverter.ConvertToImage(ITex tex) 位置 E:\VSProject\repkg-master\RePKG.Application\Texture\TexToImageConverter.cs:行号 20
在 RePKG.Command.Extract.ConvertToImageAndSave(ITex tex, String path, Boolean overwrite) 位置 E:\VSProject\repkg-master\RePKG\Command\Extract.cs:行号 371
在 RePKG.Command.Extract.ExtractTexDirectory(DirectoryInfo directoryInfo) 位置 E:\VSProject\repkg-master\RePKG\Command\Extract.cs:行号 115
Done`
The output of the program is this:
This happens when trying to convert the leaves1.tex file from the default wallpaper engine assets.
I'm including the file just in case my files are different (github does not support .tex files, so I renamed it to a .txt file). leaves1.tex.txt