Questions tagged [webimage]

34 questions
7
votes
7 answers

Is it possible for a view to display a WebImage without saving it to a file first?

I'm not really sure if I'm using the WebImage class correctly. I have a controller that pulls a photo and some related information (comments, upload date, file name) from the database. I want to return a partial view that contains this information,…
Brandon
  • 68,708
  • 30
  • 194
  • 223
4
votes
4 answers

Detect Graphical Regions in an Image on a Web Page

I've been beating around the bush a lot, so I'll explain my problem here and hope with the whole picture, somebody has some ideas. With the following image: I need to detect a mouseover on the blobs over her eyes and mouth, and solve this problem…
ProfK
  • 49,207
  • 121
  • 399
  • 775
3
votes
1 answer

MVC WebImage OutputCache results in content type of text/html

I'm trying to add an OutputCache to an MVC Action that has a WebImage.Write() response but as soon as I add it (even with a duration of 0) the content type changes from image/jpeg to text/html and I get the image rendered out as text in the…
Rob
  • 10,004
  • 5
  • 61
  • 91
3
votes
1 answer

WebImage and large memory consumption

We have scenario of image upload in ASP.NET MVC3. Controller public ActionResult Upload(IEnumerable images, SomeViewModel model) { foreach(var i in images) { ... byte[] fileBytes = i.InputStream.GetBytesArray(); …
22db05
  • 675
  • 1
  • 9
  • 13
2
votes
0 answers

HorizontalListView with RemoteImageView

Hi I am trying to use HorizontalListView by dev-smart (from here) with each entry showing image fetched from the web using RemoteImageView by käppler ignition library (from here). There is an issue that makes the image not loaded at all in the…
2
votes
3 answers

Fill an Unknown Asymmetric Polygon with Pixel Manipulation (WebImage) in JS

Recently, I have been trying to create code to fill a polygon of any shape with color. I have gotten as far as being able to fill a shape that has lines of only one border size correctly, though I have found myself unable to do anything more than…
Cyerunix
  • 71
  • 11
2
votes
0 answers

Image size gets bigger after upload

I'm using asp.net mvc 4 to upload images on my server. I'm using WebImage class to resize my images before uploading. But I'm now sure why but my image file size is getting bigger after upload which shouldn't be happening because I'm resizing the…
Shihan Khan
  • 2,180
  • 4
  • 34
  • 67
2
votes
1 answer

Serve 2 files simultaneously with Nanohttpd from Android device

I want to send local mp3 files from my device to Chromecast. I allready have a version of Nanohttpd running and it works well, i can play my songs on my tv without problems with: MediaMetadata mediaMetadata = new…
Juanjo
  • 298
  • 1
  • 15
2
votes
1 answer

Detect CMYK from stream using System.Drawing

I have a problem were I need to detect if a WebImage is in CMYK-mode. Either by passing the WebImage to the function, or byte-array. At the moment I have: public static bool IsCMYK(Image img) { bool isCMYK; if…
Lasse Edsvik
  • 9,070
  • 16
  • 73
  • 109
2
votes
1 answer

How to create Thumbnail in Umbraco using WebImage? (with Razor)

I'm using Umbraco 6. I try to create 2 Thumbnails for each photo I upload with the Mediapicker. I mean - every photo that upload should have 140x100 version and 350 x 200 version. I don't want to use the ImageGen. So I found this article about the…
Menahem Gil
  • 787
  • 2
  • 15
  • 39
2
votes
1 answer

What image file types does WebMatrix's WebImage Helper support?

What image file types does WebMatrix's WebImage Helper support, when using WebImage.GetImageFromRequest();? I have looked here: http://msdn.microsoft.com/en-us/library/system.web.helpers.webimage.getimagefromrequest(v=vs.111).aspx but it didn't…
VoidKing
  • 6,282
  • 9
  • 49
  • 81
1
vote
1 answer

How to crop an image using C# with the WebImage class?

I have an application that is written using C# on the top on ASP.NET MVC 5 framework. I am trying to use WebImage to crop an image that I have on disk. On the GUI, I am using Jcrop plugin to allow the user to mark the area they want to crop aka…
Junior
  • 11,602
  • 27
  • 106
  • 212
1
vote
2 answers

Resize image BEFORE uploading to Azure blob storage

i am trying to resize an image using the WebImage helper BEFORE uploading to Azure blob, using the following code, but getting this error: cannot convert from 'system.web.helpers.webimage' to 'system.io.stream' The code is as follows: public…
Gavin5511
  • 791
  • 5
  • 31
1
vote
1 answer

WebImage maximum size, file formats allowed etc

I am using MVC WebImage helper var image = WebImage.GetImageFromRequest(); It seems like the image is only allowed in image formats and there is a maximum size that is allowed set on the image. for example, if I try to upload an "image" with…
Mindless
  • 2,352
  • 3
  • 27
  • 51
1
vote
1 answer

Webmatrix - WebImage helper and Create Directory

I have previously successfully managed to upload a file using the webimage helper, but i am now trying to combine that with creating a directory, and failing miserably. here is my code: if(IsPost){ //Create Directory using PropertyID var…
Gavin5511
  • 791
  • 5
  • 31
1
2 3