Questions tagged [imagesharp]

A cross-platform library for the processing of image files; written in C#

ImageSharp is a new, fully featured, fully managed, cross-platform, 2D graphics API.

Designed to democratize image processing, ImageSharp brings you an incredibly powerful yet beautifully simple API.

Compared to System.Drawing we have been able to develop something much more flexible, easier to code against, and much, much less prone to memory leaks. Gone are system-wide process-locks; ImageSharp images are thread-safe and fully supported in web environments.

Built against .Net Standard 1.1 ImageSharp can be used in device, cloud, and embedded/IoT scenarios.

Documentation and Code Respository

https://sixlabors.github.io/docs/

https://github.com/SixLabors/ImageSharp

164 questions
1
vote
1 answer

How to extract, upcast and process an array of bytes from GetPixelSpan then save back to a file?

This is probably a really simple matter, but I can't quite figure out how to put the pieces together. This question and this question as well as this page in the API documentation all somewhat hint at the answer, but I haven't been able to work out…
Jarak
  • 972
  • 9
  • 16
1
vote
2 answers

ImageSharp can't load Image (MethodNotFound)

I have migrated my ImageSharp references to version 1.0.0-dev000692. Now I can't load an Image anymore. I'm getting the exception you can see down below. Call: byte[] data = GetImage(); var image = Image.Load(data); The function is called in a…
slxSlashi
  • 267
  • 1
  • 3
  • 11
1
vote
2 answers

I need a complete guide on image processing and optimization

I need a complete guide on image processing and optimization with .Net Core 2.. I tried to use ImageSharp, CoreCompat.System.Drawing, SkiaSharp, non of these libraries are compatable with .net Core 2 And for sure System.Drawing is not there,, and…
Mo Bdair
  • 243
  • 1
  • 5
  • 17
1
vote
1 answer

Replacing color with a texture in asp.net core c#

I've been experimenting on an image processor called ImageSharp since System.Drawing is not available on asp.net core, and System.Drawing can have its woes. I want to fill whitespace, with a specific texture from an image. The code below is…
1
vote
0 answers

ImageSharp - Mutate in foreach loop?

It's still in beta, but maybe someone knows.. I am using ImageSharp library for drawing some images (charts). I have something like this: Image image = new Image (width, height) int y = 0; foreach (var label in…
daneejela
  • 13,081
  • 7
  • 38
  • 50
1
vote
2 answers

Imagesharp mutate in F#

I am trying to use ImageSharp to edit pictures in F#. I'm struggling to get the image mutations working To do an image mutation in C#, it looks like you just use the mutate method and a lambda: image.Mutate(x => x.Kodachrome()) Normally, to change…
Jacqueline Nolis
  • 1,457
  • 15
  • 22
1
vote
2 answers

ImageSharp Specified Method is not supported

Hi I am using ImageSharp version 1.0.0-alpha9-00175. When i use the .Save(output, ImageFormats.Jpeg); I get the following Here is my code input.Seek(0, SeekOrigin.Begin); using (Image image = Image.Load(input)) …
0
votes
0 answers

How would i go about finding the baseline of a font using ImageSharp in pixels

I've been trying to get the font baseline of a font by calculating the Descender using the ImageSharp.Font library for C#. So far what I've been able to gather is that the all measures are expressed in Font Units, but I need them in pixels so I'm…
0
votes
1 answer

How to make ImageSharp.Web to resize images from a local directory other then wwwroot

I'm developing a Blazor server application and I'm trying to implement imagesharp.web (V.3.01) I have to use a folder called "Uploads" (not inside wwwroot). I'm trying to use PhysicalFileSystemProviderOptions, setting the ProviderRootPath to the…
Stelios
  • 45
  • 8
0
votes
0 answers

Image cannot be loaded. Available decoders

Trying to load a image with ImageSharp, I get this: Image cannot be loaded. Available decoders: BMP : BmpDecoder GIF : GifDecoder PBM : PbmDecoder JPEG : JpegDecoder PNG : PngDecoder TGA : TgaDecoder Webp : WebpDecoder TIFF : TiffDecoder I try to…
soyunewok
  • 115
  • 7
0
votes
1 answer

How to use SixLabors.ImageSharp in a Azurefunction project

I need to use ImageSharp to handle images on my Azure function. But even after adding the reference, I still can't reference it from the c# code. In other solutions related to the library, they mention to add configuration in the startup.cs of an…
R44
  • 153
  • 1
  • 9
0
votes
1 answer

How to use IRequestParser in ImageSharp.Web to redirect image requests to a different directory in an Azure container?

In my ImageSharp.Web test project, I am trying to redirect image requests to a different directory in an Azure container. For example, I want requests to https://example.com/directory1/12345/image.jpg to instead look in…
Eyeball
  • 1,322
  • 2
  • 16
  • 26
0
votes
1 answer

ImageSharp Watermark .NET6

I found few examples on how to add a Watermark on a ImageSharp Image, but I get this error: SixLabors.ImageSharp.Drawing: Method not found: 'System.Span`1
johnykes
  • 1,663
  • 2
  • 9
  • 25
0
votes
0 answers

How to upload image to ftp server after resizing by ImageSharp .NET Core

I am using ImageSharp library in my ASP.NET Core Web API project. I want to upload an image after resizing by ImageSharp to ftp server. I am using fluentftp for uploading image.this is my code below public async Task UploadImage(IFormFile…
0
votes
0 answers

How to shift color of part of an image with ImageSharp?

I need to make a highlighter effect as if drawing with a transparent ink. How do I do this in ImageSharp (or any other C# image processinglibrary)? Example Image:
SpicyCatGames
  • 863
  • 7
  • 25