Questions tagged [imageprocessor]

ImageProcessor is a collection of lightweight libraries written in C# that allows you to manipulate images on-the-fly using .NET 4.5+

ImageProcessor contains multiple methods within the core functionality that allows for image manipulation via the ImageFactory class. This has a fluent API which allows you to easily chain methods to deliver the desired output.

ImageProcessor contains no web specific components so is suitable for both desktop and web applications.

The base library supports processing of jpg, jpeg, png, png8, gif (both animated and static), bmp, and tiff file formats.

It consists of two main libraries ImageProcessor - For desktop and application use and ImageProcessor.Web - a dynamic image processing extension built for ASP.NET.

Resources

57 questions
39
votes
5 answers

Asynchronous locking based on a key

I'm attempting to figure out an issue that has been raised with my ImageProcessor library here where I am getting intermittent file access errors when adding items to the cache. System.IO.IOException: The process cannot access the file…
James South
  • 10,147
  • 4
  • 59
  • 115
26
votes
3 answers

Split resize algorithm into two passes

I have written the following resizing algorithm which can correctly scale an image up or down. It's far too slow though due to the inner iteration through the array of weights on each loop. I'm fairly certain I should be able to split out the…
James South
  • 10,147
  • 4
  • 59
  • 115
13
votes
5 answers

How can i read EXIF data in AspNet.Core

What's the best way to read EXIF info of a picture in Asp.Net Core. I am using ImageProcessorCore alpha from myget to rotate pictures but i haven't found a way to read exif data is there a in library way of doing this?
Dživo Jelić
  • 1,723
  • 3
  • 25
  • 47
5
votes
1 answer

Mimicking this imaging effect

I am asking this question as the other one is two years old and not answered accurately. I'm looking to replicate the PhotoShop effect mentioned in this article in C#. Adobe call it a Color halftone, I think it looks like some sort of rotated CMYK…
James South
  • 10,147
  • 4
  • 59
  • 115
4
votes
0 answers

spatie medialibrary defining fallback image for each convertion

with spatie/medialibrary package i have 3 conversions in registerMediaConversions method like this public function registerMediaConversions(Media $media = null): void { $this->addMediaConversion('thumb') ->fit(MANIPULATIONS::FIT_STRETCH,…
4
votes
0 answers

How to mimic Microsoft Photos's Clarity feature in ImageProcessor library

I'm trying to improve the identification of a facial recognition in a photo, because sometimes no face is detected using Microsoft's Face API. In this scenario I want to try to improve the quality of the photo. When I do this manually in Microsoft's…
3
votes
1 answer

Cropping Image With ImageProcessor not working on server

I use this plugin for cropping image in my asp.net mvc 5 application. When I launch application in localhost every thing are right and I can crop image successfully. But I cant crop images on server. I don't get any error and image saved in…
Un person
  • 31
  • 2
3
votes
1 answer

ImageProcessorCore: Opening image takes >11seconds, what am I missing?

I'm currently examining ImageProcessorCore and I ran into an issue that makes me feel like I'm missing something: On his website the dev shows some benchmarks with a performance that is completely different to the times I measure in my sample…
Rob
  • 11,492
  • 14
  • 59
  • 94
3
votes
0 answers

Running out of memory resizing images in dot net

I'm having a lot of issues running out of memory resizing images. I was at first convinced that I was simply leaking, so I switched my custom code for something based around https://github.com/JimBobSquarePants/ImageProcessor and the same issues…
Andiih
  • 12,285
  • 10
  • 57
  • 88
2
votes
1 answer

Error CS7069 Reference to type 'Image' claims it is defined in 'System.Drawing', but it could not be found

I had the original Problem that System.Drawing does not work in UWP applications. after a short web search ImageProcessor (https://imageprocessor.org/imageprocessor/#about) showed up. My current situation is: I am trying to change a white image to…
JL_Funk
  • 41
  • 9
2
votes
0 answers

ImageProcessor.Plugins.WebP - Cannot load libwebp.dll

I have implemented ImageProcessor in our CMS (.net Framework) to convert images to webp. I works fine on development PC and on testserver with Windows Server 2017. On our current production server with Windows Server 2012 i get an "Cannot load…
KeldJ
  • 141
  • 1
  • 10
2
votes
2 answers

Generic GDI+ Error on Saving/loading image from MemoryStream using ImageProcessor

I'm having Generic GDI+ Error on line imageFactory.Load(inStream). My project is ASP.NET Core Razor-Pages. I tried to clone inStream to new stream (this helped me before when saving bitmaps), but to no success. Anyone dealt with something similar…
xcelm
  • 541
  • 1
  • 6
  • 19
2
votes
1 answer

ImageProcessor / Windows Azure Storage issue, returns 403 Forbidden

These images can be loaded in local ENV, and also in production ENV. However, for no reason at all, the staging environment cannot load these.
Gabriel Robert
  • 3,012
  • 2
  • 18
  • 36
2
votes
0 answers

Adjusting the spread of a vignette effect

I'm using the following code to produce a vignette effect on an image. As you can see below it works quite well. I'd like to be able to adjust the inner spread of the vignette (i.e make the middle brighter and shorten the gradient) however the maths…
James South
  • 10,147
  • 4
  • 59
  • 115
2
votes
1 answer

ImageProcessor seems to rotate image 90 degrees after resizing

I downloaded the ImageProcessor library using nuget for c#. I am using it to upload and resize image for a website. The upload process works fine except, when I try to view the uploaded image it appears backward rotated 90 from the original image.…
user1790300
  • 2,143
  • 10
  • 54
  • 123
1
2 3 4