diff --git a/src/ImageSharp/Formats/Png/Filters/NoneFilter.cs b/src/ImageSharp/Formats/Png/Filters/NoneFilter.cs
index 0164ceafaa..14af8ca6a0 100644
--- a/src/ImageSharp/Formats/Png/Filters/NoneFilter.cs
+++ b/src/ImageSharp/Formats/Png/Filters/NoneFilter.cs
@@ -20,7 +20,7 @@ namespace SixLabors.ImageSharp.Formats.Png.Filters
/// The scanline to encode
/// The filtered scanline result.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
- public static void Encode(Span scanline, Span result)
+ public static void Encode(ReadOnlySpan scanline, Span result)
{
// Insert a byte before the data.
result[0] = 0;
diff --git a/src/ImageSharp/ImageFrame.LoadPixelData.cs b/src/ImageSharp/ImageFrame.LoadPixelData.cs
index 1306c28367..4639a104b1 100644
--- a/src/ImageSharp/ImageFrame.LoadPixelData.cs
+++ b/src/ImageSharp/ImageFrame.LoadPixelData.cs
@@ -23,7 +23,7 @@ namespace SixLabors.ImageSharp
/// The height of the final image.
/// The pixel format.
/// A new .
- public static ImageFrame LoadPixelData(MemoryManager memoryManager, Span data, int width, int height)
+ public static ImageFrame LoadPixelData(MemoryManager memoryManager, ReadOnlySpan data, int width, int height)
where TPixel : struct, IPixel
=> LoadPixelData(memoryManager, MemoryMarshal.Cast(data), width, height);
@@ -36,7 +36,7 @@ namespace SixLabors.ImageSharp
/// The height of the final image.
/// The pixel format.
/// A new .
- public static ImageFrame LoadPixelData(MemoryManager memoryManager, Span data, int width, int height)
+ public static ImageFrame LoadPixelData(MemoryManager memoryManager, ReadOnlySpan data, int width, int height)
where TPixel : struct, IPixel
{
int count = width * height;