-
-
Notifications
You must be signed in to change notification settings - Fork 887
Closed
Labels
Description
Prerequisites
- [x ] I have written a descriptive issue title
- I have verified that I am running the latest version of ImageSharp
- I have verified if the problem exist in both
DEBUGandRELEASEmode - I have searched open and closed issues to ensure it has not already been reported
Description
I've been trying to modify an existing png image of 2500x2500 pixels but I doubt the image format matters. When I try to save out the the new image it does save as 2500x2500 pixels (png and jpg formats tested), but only the first 61 rows are filled with valid data; the rest is filler (i.e. transparency in the case of png files).
Steps to Reproduce
using (Image<Rgba32> SourceOverlay = Image.Load<Rgba32>(@"C:\Users\Richard's Tower\source\repos\ResplitTiles\Images\WorldMaps\Overlay.png"))
{
using (Image<Rgba32> TargetOverlay = new(SourceOverlay.Width, SourceOverlay.Height))
{
for (int WorldY = 0; WorldY < SourceOverlay.Height; WorldY++)
for (int WorldX = 0; WorldX < SourceOverlay.Width; WorldX++)
{
TargetOverlay[WorldX, WorldY] = SourceOverlay[WorldX, WorldY];
}
TargetOverlay.SaveAsPng(@"C:\Users\Richard's Tower\source\repos\ResplitTiles\Images\WorldMaps\OverlayEnlarged.jpg");
}
}System Configuration
- ImageSharp version: 1.0.3
- Other ImageSharp packages and versions: None
- Environment (Operating system, version and so on): Windows 10 Pro. OS Build 19043.1263
- .NET Framework version: .Net 6.0-
- Additional information: Edit: I'm using x64 Debug mode for testing.