imageresizer

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

限于喜欢 提交于 2020-01-04 13:42:31
问题 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.Files[fileKey]; if (file.ContentLength <= 0) continue; //Get the physical path for the uploads folder and make sure it exists string desFolder = Server.MapPath("~/Data/ProductImages/") + productId.ToString(); if (!Directory.Exists(desFolder)) Directory.CreateDirectory(desFolder); //string fileName; string guid = System.Guid.NewGuid().ToString

ImageResizer rotation issues

筅森魡賤 提交于 2020-01-03 19:07:07
问题 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's using the old orientation. What's causing this? 回答1: The application you are using to rotate images is only setting the Exif Orientation metadata flag. ImageResizer will honor aforementioned metadata if you install the Autorotate plugin and specify &autorotate=true in the command string.

ImageResizer: Resize based on filename

China☆狼群 提交于 2019-12-25 01:24:27
问题 Instead of specifying width and height in the querystring like this: http://example.com/media/cow/small.png?w=100&h=100 Is it possible to configure Imageresizer to look at the filename (small.png) and use this information to scale it to 100x100? This would allow me to request images like this: http://example.com/media/cow/small.png http://example.com/media/cow/big.png 回答1: This is usually called URL rewriting. See Using ImageResizer with a custom naming convention How can I set up custom

Image dimensions getting corrupted using ImageResizer with Azure function app

柔情痞子 提交于 2019-12-25 00:55:33
问题 I have a azure function app with one input and two outputs. In this case whenever an image is uploaded to a container: originals, the function app will be triggered which will generate two thumbnail images. I developed the following function app using VS2017 and deployed to Azure portal. Code: using ImageResizer; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Host; using System; using System.Collections.Generic; using System.IO; namespace FunctionApp1 { public static class

ImageResizer is not resizing images served by WebAPI

爱⌒轻易说出口 提交于 2019-12-24 17:25:57
问题 I am trying to get ImageResizer to resize images which are served by WebAPI. I have ImageResizer installed as in documentation. /resizer.debug.ashx shows no issues. When I try to resize static image, it works fine. I tried resizing with these parameters: /api/files/image/image.jpg?width=100 /api/files/image/image.jpg?width=100&process=always /api/files/image/image.jpg?width=100&format=jpg My WebAPI action looks like this: [HttpGet] public HttpResponseMessage Image(string name) { var filePath

Using ImageResizer with custom query string

ε祈祈猫儿з 提交于 2019-12-24 13:22:52
问题 I'm using ImageResizer while the clients find images with this format: http://website/imagehandler.aspx?id=120&width=240&height=300 This is a different way of addressing images using folder hierarchy, as I use id to find the image location. Formerly, I wrote a custom plugin for my case of usage but I had some thread-safety issues with that solution, as mentioned here: imageresizer-shows-wrong-image. Nathanael (developer of image resizer) advised me not to use custom plugin and use the default

Is there PNG compression in ImageResizer like tinypng.org?

爱⌒轻易说出口 提交于 2019-12-24 00:38:48
问题 I have this project that displays a big list of transparent pngs. I use Cloudfront and ImageResizer to serve up my images: media.mysite.com/Images/imageA.png;w=170 Now here is my pickle. imageA.png is ~220kb --> After tinypng.org --> ~87kb / ~62% reduction I have access to png "compression" libraries like that, but the problem is that the ImageResizer bumps the size back up to full (without compression) imageA.png;w=170 is ~90kb --> After tinypng.org --> ~20kb / ~62% reduction So even if I

Receive 400 Bad Request from Image Resizer request in Azure

妖精的绣舞 提交于 2019-12-22 18:26:54
问题 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 query string arguments are specified and the url redirects to blob storage, but if a query string argument is specified then I receive a 400 "Bad Request" error. Below is a screenshot of my browser: My Azure instance is running Windows Server 2012. I have also disabled the DiskCache plugin to reduce

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

北慕城南 提交于 2019-12-22 11:05:43
问题 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 information === LOG: DisplayName = Microsoft.WindowsAzure.Storage, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 (Fully-specified) LOG: Appbase = xxx LOG: Initial PrivatePath = xxx Calling assembly : ImageResizer.Plugins.AzureReader2, Version=3.4.0.763, Culture=neutral,

mvc3 ImageResizer

廉价感情. 提交于 2019-12-20 07:15:03
问题 I downloaded the Nugent ImageResizer and I am trying to resize a picture on upload following an example on this page http://imageresizing.net/docs/managed but I can't seen to put this in a Var or Image variable so i can see it in the Path.Combine here is the code var fileName = Path.GetFileName(file.FileName); var changename = getid + "_" + fileName; ImageBuilder.Current.Build(changename, changename, new ResizeSettings("width=130&height=130")); var path = Path.Combine(Server.MapPath("~