imagesharp Questions

3

Solved

I need to convert some System.Drawing based code to use this .NET Core compatible library: https://github.com/SixLabors/ImageSharp The System.Drawing based code below resizes an image and crops o...
Jayme asked 22/3, 2019 at 11:13

2

Solved

How do I get the image format using SixLabors.ImageSharp? In version 1.0.0-alpha9-00152 I could use: Image<Rgba32> image = Image.Load(GetBytesFromBlobStorage()); IImageFormat format = image...
Stereochrome asked 18/10, 2017 at 9:47

1

I have some existing C# code that uses System.Drawing.Common to measure the approximate width of a string in pixels: var text = "abc123 this is some long text my dog's name is fido."; us...
Somnambulate asked 10/11, 2021 at 3:35

2

I have a requirement to insert a unique ID into image files without modifying the image content – ie it’s just the metadata that I want to modify. I’m starting with the JPEG files because there is ...
Modicum asked 31/3, 2020 at 13:34

1

I get PixelFormats.Bgra32 images from UAP and WPF and I would like to know the fastest way to convert them to and from SixLabors.ImageSharp Image<Rgba32> images. Is there some magic "mut...
Kiss asked 11/11, 2020 at 6:5

2

How can I convert an image to array of bytes using ImageSharp library? Can ImageSharp library also suggest/provide RotateMode and FlipMode based on EXIF Orientation?
Charlatanry asked 25/4, 2018 at 15:18

2

I am unable to save the jpg image using SixLabors.ImageSharp version - 1.0.0-beta0007 in c#, It throws error. Is there any solution to fix the issue beside GIF,PNG,JPEG,BMP format images. Throws ...
Averell asked 15/1, 2020 at 12:34

1

Solved

I am trying to compress image(usually around 5-30) quality / size with ImageSharp.Web() library, and I cant really understand how can I do that or what I am missing here. Can I reuse the same mem...
Tlingit asked 11/8, 2019 at 11:12

1

Solved

I am following a tutorial (https://opentk.net/learn/chapter1/4-textures.html) using ImageSharp. How do I convert the type 'ImageSharp.Image' to 'ImageSharp.PixelFormats.Rgba32'? To load the Image,...
Hoag asked 4/9, 2019 at 13:25

1

Solved

I am using ImageSharp (ver 1.0.0-beta0006) in my .Net Core 2.2 project. I primarily use it to resize image (to generate thumbnail) and it's working fine. Recently, I've got a requirement to draw r...
Saleratus asked 2/7, 2019 at 5:56

1

Solved

I was uploading a jpg image from my browser, as a part of a form, to my .Net Core web api which resides on AWS Lambda. It uploaded but resulted in errors when I tried to process it using ImageSharp...
Jocundity asked 21/6, 2019 at 1:26

2

Solved

I have a task to create an image that will be printed. On the picture, I need to put a single uppercase letter (Upper case, [A-Z]). The printed image size can vary between 15cm height, and 30cm he...
Mesognathous asked 18/10, 2018 at 2:59

1

Completely unable to render JPEG image to PDF using PdfSharpCore. Code is as simple as public byte[] GetPdfContent() { ImageSource.ImageSourceImpl = new ImageSharpImageSource(); var document ...
Momentous asked 21/6, 2018 at 5:39

2

I have a web application on which users can upload profile picture by taking the picture directly by mobile phones. Because of EXIF orientation of the images, the frontend must transform image (rot...
Bromoform asked 24/4, 2018 at 17:57

1

Solved

I have a byte[] and I want to create a gray-scale image using ImageSharp library. That is how I am doing it currently: byte[] arr = MnistReader.ReadTestData(); //this gives me byte[] with 784 pix...
Romine asked 9/1, 2018 at 21:57

1

Solved

I'm trying to generate a barcode image. When I use the following code I can create a base64 string but it's giving a blank image. I checked the content is not blank or white space. There are codes...
Ultramicrometer asked 14/12, 2017 at 10:39
1

© 2022 - 2025 — McMap. All rights reserved.