Questions tagged [imageresizer]

ImageResizer is a general-purpose .NET image processing library designed for server-side use, and focusing on scalability, safety, and image quality.

Filter by
Sorted by
Tagged with
18 votes
1 answer
44k views

Can't reference system.drawing.dll

i'm trying to resize images with ImageResizer, but keep getting a compilation error "Error 1 The type 'System.Drawing.Bitmap' is defined in an assembly that is not referenced. You must add a ...
KristianMedK's user avatar
  • 1,729
8 votes
2 answers
8k views

Image Resizer and ASP.NET Core

Can ImageResizer be used in an MVC6 (MVC Core) application. We understand that ImageFlow can be (not yet released), but what can we do in the meantime. Many thanks
user2981411's user avatar
8 votes
1 answer
370 views

Using image404 with azurereader2 in ASP.net

I am using following plugin to resizes images in ASP.net application AzureReader2 works fine image404 works fine seprately but when I try to access blob url it does not redirect and it is giving ...
SOF User's user avatar
  • 7,680
7 votes
1 answer
4k views

Creating a sprite image using ASP.NET

I'm having a major performance issue. The problem is on one of my websites there is a slider that calls about 180 images. Each one of those 180 images is downloaded by a client browser via an ...
craigmoliver's user avatar
  • 6,499
7 votes
0 answers
554 views

Images being rotated after ImageJob but not wanted

I'm having an issue with some images being rotated during the processing of ImageJob. I'm having an issue with detecting the correct rotation of an image uploaded from some (modern) mobile devices. ...
userStack's user avatar
6 votes
1 answer
3k views

Resizing and cropping images using ImageResizer

I'm trying to resize and then square-crop incoming images. I have my image in a ReadOnlyStream and would like to output to MemoryStream. I'm using ImageResizer library to do this. I'd like my images ...
Robert Koritnik's user avatar
6 votes
3 answers
7k views

ASP.NET Image Resizing and Cropping [closed]

I m looking for ASP.NET Image Resizing, Cropping that is good in image re-sizing, cropping etc. Anyone know please share Thankx In Advance
Muhammad Adnan's user avatar
5 votes
1 answer
2k views

How to use the autorotate plugin in ImageResizer

How do I use the AutoRotate plugin in a c# console application? I thought I'd be able to do something like settings.AutoRotate = true; like I can change the fit mode to use the seam carving plugin. I'...
MariaSnuggles's user avatar
5 votes
2 answers
741 views

ImageResizer disposing provided Image reference

We are using the image resizer from imageresizing.net and are seeing some weird behaviour. When we read an image in from a stream and then resize the image we can no longer access the properties of ...
Daniel Powell's user avatar
5 votes
1 answer
1k views

c# image resizing

Just working on a image uploader/resizer in my asp.net 4 web forms project. Does anyone know of a technique in C# for resizing uploaded images that could help with ones that are smaller than the ...
e-on's user avatar
  • 1,565
5 votes
2 answers
2k views

Determine current size of image using ImageResizer.net

We have recently started using ImageResizer.Net over GDI+ for dynamically resizing images on our ASP.NET MVC 4 application. Is there a way, using only ImageResizer, to determine the actual resolution(...
Thomas Jones's user avatar
  • 4,902
4 votes
3 answers
3k views

Image Resizing from SQL Database on the fly with MVC2

I have a simple MVC2 app that uploads a file from the browser to an MS SQL database as an Image blob. Then I can return the results with something like: public FileContentResult ShowPhoto(...
beebul's user avatar
  • 1,003
4 votes
1 answer
2k views

MVC4 Project and ImageResizer

Problem: MVC 4 test application with ImageResizer on any page access responds with "Could not load type 'ImageResizer.InterceptModule'" To test and understand how ImageResizer works a MVC4 project ...
Colan Arnold's user avatar
4 votes
3 answers
5k views

Converting image into stream

I'm using a function that uploads an image, takes the stream and resizes it using imageresizer.net, then uploads the stream to Amazon S3. Now I want to take a local picture and convert it into a ...
monsey11's user avatar
  • 243
4 votes
1 answer
1k views

ImageResizer error

I'm using the Image Resizer imageresizing.net. But, when I'm trying to upload or resize an image, an error occurs: The source stream is at the end (have you already read it?). You must call stream....
Benjamin RD's user avatar
  • 11.7k
4 votes
3 answers
3k views

Resizing large images with ImageResizer and out of memory exceptions

I'm encountering out of memory exceptions when i resize images 9000x9000 square using ImageResizer.Net (on a 32-bit system): ImageBuilder.Current.Build(imageFileName, outputFileName, settings, true); ...
MariaSnuggles's user avatar
4 votes
1 answer
2k views

ImageResizer: how do you use Instructions?

The documentation for ResizeSettings says: "Replaced by the Instructions class" http://documentation.imageresizing.net/docu/ImageResizer/ResizeSettings.htm The documentation for Instructions says: "...
Tristan's user avatar
  • 1,466
4 votes
2 answers
4k views

Loosing transparency in System.Drawing.Image when using ImageResizer for resizing

For my current WPF appliaction I have to down scale some System.Drawing.Image ( objects which I load from PNG files (some of them with transparent background). I've tried multiple approaches for the ...
Ralf's user avatar
  • 293
4 votes
1 answer
1k views

Compilation errors with ImageResizer 3.2.1

After allowing Nuget to update ImageResizer 3.1.5 to version 3.2.1 my compiles are failing with multiple errors (all same type): Error 5 Missing compiler required member 'System.Runtime....
JcMaltaDev's user avatar
  • 1,344
4 votes
1 answer
523 views

ImageResizer: Delete cached image (Diskcache and SqlReader)

Using ImageResizer to resize user-uploaded files on the fly. When a file is deleted in the database (row deleted), both the original and the resized versions is still accessible for some time until ...
Christian's user avatar
3 votes
3 answers
3k views

If using ImageResizer with Azure blobs do I need the AzureReader2 plugin?

I'm working on a personal project to manage users of my club, it's hosted on the free Azure package (for now at least), partly as an experiment to try out Azure. Part of creating their records is to ...
Simon Martin's user avatar
  • 4,213
3 votes
2 answers
2k views

ImageResizer for Azure using AzureReader2 plugin not resizing

EDIT I got it to work however I had to add the RemoteReader plugin. When I remove the AzureReader2 plugin from my project it still works which makes sense however what is the AzureReader2 plugin ...
Ryan's user avatar
  • 4,394
3 votes
3 answers
777 views

Just updated ImageResizer via NuGet, can't run app because it can't find BundleAttribute

I was just trying to update Azure Storage, but doing that meant I needed to update the ImageResizer AzureReader and update the app to use .Net 4.5.2 (the Azure site is set for .Net 4.6). Now I've got ...
Buns of Aluminum's user avatar
3 votes
2 answers
1k views

ImageResizer rotation issues

I rotated a few images on my computer, however, image resizer keeps using the old orientation. When I navigate to the image just using the image path, it shows up fine. However, when I add ?h=400, it'...
PBG's user avatar
  • 9,074
3 votes
3 answers
1k views

Imageresizer.AzureReader2 doesn't work with latest Azure SDK 2.1.0.3

I have an ASP.NET MVC 5 application and I've upgraded to the latest SDK 2.1.0.3 and it seems as though ImageResizer has blown up. Are there any work arounds? Here is the details: === Pre-bind state ...
Ryan's user avatar
  • 4,394
3 votes
1 answer
2k views

Correct way to cache images in MVC app

I am using the ImageResizing library, to resize and deliver my image in my C# Mvc application. One thing that isn't happening though is my image aren't getting cached. I am struggling to understand ...
shenku's user avatar
  • 12.1k
3 votes
2 answers
2k views

ImageResizer rotates images

I use ImageResizer in my web application. It resizes most of the images on the page correctly. But there is one set of images, that it rotates. The code is the same for all the images. See the ...
Captain0's user avatar
  • 2,603
3 votes
1 answer
379 views

Can we speed up or prevent the need for AuthorizeRequest for image requests using imageresizer?

I've just set-up newrelic on an azure cloud service and now sifting through the logs to make any improvements. For the imageresizer requests, I'm noticing a significant amount of time in ...
Phil Cooper's user avatar
  • 3,093
3 votes
2 answers
341 views

How can I properly set the cache directory for ImageResizer on an Azure WebRole?

ImageResizer's DiskCache plugin works fine locally, but when I deploy the WebRole to Azure the deployment partition is too small to cache a meaningful amount of files. Specifically, the WebRole ...
RyanCEI's user avatar
  • 426
3 votes
1 answer
1k views

Using asp.net ImageResizer api

I'm using ImageResizer (imageresizing.net) and I'm able to create resized images: public void DoMagic(string original) { string newImage = Server.MapPath("~/Images/test.png"); ResizeSettings ...
mishap's user avatar
  • 8,256
3 votes
1 answer
1k views

ImageResizer and image files without an extension

I've been using ImageResizer.net just fine in our web app, but now I need it to resize and serve images that don't (and cannot) have a file extension, like this one: http://localhost:58306/...
Ronnie Overby's user avatar
3 votes
1 answer
4k views

Azure Function - Resize image stored in a blob container

I've answered this question related to Azure Webjob and Resizing a image stored as a blob and so I am trying to do the same using a Function App Each time a new blob is uploaded, I send a a new queue ...
Thomas's user avatar
  • 26k
3 votes
1 answer
117 views

How can I limit the number of image files created by ImageResizer app?

We're about to start using ImageResizer (http://imageresizing.net/) and we're using the DiskCache plugin. We have a concern that it would be very easy to create millions of files and cause problems ...
AliC's user avatar
  • 53
3 votes
1 answer
520 views

ImageResizer not working after deployment to IIS7.5 integrated mode, ashx style url works

I'm using ImageResize.net in an MVC3 site. It works correctly on my dev machine (using iis7.5 integrated mode) and does not require the use of ashx extension for resized images. I've deployed to ...
David Tansey's user avatar
  • 5,873
3 votes
1 answer
358 views

PSD file not resizing properly

I am trying to bulk resize PSD images into jpg using http://imageresizing.net/ The PSD images are not getting converted properly. Help I have added reference to psdcomposer & freeImage and ...
user1941944's user avatar
3 votes
1 answer
1k views

ImageResizer/System.Drawing and CMYK JPEGs

I'm doing some simple image resizing and rotation in an ASP.NET MVC 4 project, using the ImageResizer library. The problem is that when I use it to process 32-bpp CMYK JPEG files, it fails with an ...
Nikhil Dabas's user avatar
  • 2,362
2 votes
4 answers
16k views

Resizing image proportionally in ASP.NET C# by specifying either Height or Width

I need a code that will allow me to resize images, but with the following functionality: 1) resize image upon upload 2) Resize image proportionally by specifying either height or width. Note: ...
Liron Harel's user avatar
  • 10.9k
2 votes
1 answer
4k views

ImageResizer 'Use .Build(new Image Job(source, dest, settings, dispose Source, add FileExtension)).Final Path instead'

I'm using imageresizer, it works very well at run time: foreach (string fileKey in Request.Files.Keys) { //Skip unused file controls. var file = Request....
Mohammadreza's user avatar
  • 3,169
2 votes
2 answers
789 views

ImageResizer : FastScaling plugin error

I have this error, when I added the library 'ImageResizer.Plugins.FastScaling.DLL' Error Message Analyzer: Could not load file or assembly 'ImageResizer.Plugins.FastScaling.DLL' or one of its ...
Philippe Auriou's user avatar
2 votes
3 answers
2k views

Image Resizer issue with Azure Functions

I've been following a tutorial on how to resize images using ImageResizer listening to blob storage triggers in Azure Functions. However, i'm getting the following error message: error CS0246: The ...
Gavin5511's user avatar
  • 791
2 votes
2 answers
1k views

How do I make ImageResizer ignore ASP.NET Forms Authentication rules?

We're building a web application that is secured using Forms Authentication. On a certain page, we have a list of thumbnails. These thumbnails are generated with ImageResizer like this: <img src="/...
Kristof Claes's user avatar
2 votes
2 answers
1k views

Why does ImageResizer always resize my image to 900 width?

I'm using ImageResizer, I nuget the core and webconfig packages and did not change any settings and I simply have this line of code, ImageBuilder.Current.Build(file, name, new ResizeSettings("...
Ray's user avatar
  • 12.2k
2 votes
2 answers
435 views

Return Model but it's null

I'm using Imageresizer and uploading a photo. I want to get the URL that I receive and return it to my View. I have the URL that I want, but I can't return it further... This is my code at the moment: ...
user2862542's user avatar
2 votes
1 answer
437 views

Image Resizer User.Identity in eventhandler

Added an AuthorizeImage eventhandler to image access restriction. Noticed the following when i was trying to check the users name and authenticationstatus: Below will not result in exception, but ...
Base's user avatar
  • 1,061
2 votes
1 answer
551 views

Using ImageResizer to resize PDF sometimes leads to exception which does not resolve until restart application pool

We're using ImageResizer (imageresizing.net) to generate thumbnails of the front page of PDFs. It works great (as does pretty much everything else to do with ImageResizer) except for the following ...
Ted's user avatar
  • 7,152
2 votes
1 answer
360 views

High CPU with ImageResizer DiskCache plugin

We are noticing occasional periods of high CPU on a web server that happens to use ImageResizer. Here are the surprising results of a trace performed with NewRelic's thread profiler during such a ...
Todd Menier's user avatar
2 votes
1 answer
649 views

ImageResizer AzureReader2 Plugin - 404 response to resize request

After many years of using ImageResizer with the Disk Cache plugin on a dedicated server we are gradually migrating our websites to Microsoft Azure. Unfortunately I'm having problems with the ...
cookdn's user avatar
  • 378
2 votes
2 answers
660 views

Receive 400 Bad Request from Image Resizer request in Azure

ImageResizer is running as an Azure virtual application (after ImageResizer hotfix). This runs fine in Azure emulation but is having problems in Azure cloud. Image Resizer is working fine if no ...
JohnVo's user avatar
  • 277
2 votes
2 answers
820 views

ImageResizer.Net AzureReader2 Plugin not working

I am using the ImageResizer.NET library to read images from the Azure Blob Storage and resize them. For that I needed to install AzureReader2 plugin and configure it in the web.config file. I have ...
Preetham Reddy's user avatar
2 votes
3 answers
2k views

ImageResizer - Error converting PSD file - System.ArgumentException: Parameter is not valid

I have a system where i upload single files to the webserver. Once uploaded i trigger a command to generate different sizes of the files. The files uploaded are PSD and should be converted into pngs ...
Thomas Hansen's user avatar

1
2 3 4 5
12