CodeCanyon

ImageHandler

  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
  • United States
ercanf says
Purchased

Works like a charm. Got a question though: How can I save a watermarked image back to the disk?

Thanks!

2 years ago
Author
recoding recoding replied

Many thanks for your purchase! I’m sorry, but by now the only way is browser side, with the right click on the image. I think that will be nice to modify the StreamOut method (a clean endpoint) on the handler class to have the resulting image saved on a physical path… I’ll keep in mind your request for further implementations.

Thanks again.

2 years ago
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
  • United States
ercanf says
Purchased

I created another parameter to send to the http endpoint called “SaveImageFile” and modified the streamout to save in to the physical path. It works.

Thanks.

2 years ago
Author
recoding recoding replied

Very good :)

2 years ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
  • Greece
xmarios says

Hello.

Are you planning on publishing it for asp.net mvc and not only for web forms cause i would really like that?

1 year ago
Author
recoding recoding replied

Yes, I’m planning to do that. I’m just switching to another hosting company in order to build up a live preview. The next step is to write an MVC Helper. Stay tuned, and thanks for your interest.

1 year ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
  • Greece
xmarios says

Hello again. When it is ready for mvc, can you please send me an email?

1 year ago
Author
recoding recoding replied

Just working on it. Stay tuned ;)

1 year ago
Author
recoding recoding replied

As I promise, the MVC3 version is online. Enjoy!

11 months ago
Purchased
Default-user xmarios replied

As i promised, i just bought it:)

11 months ago
  • Has been a member for 2-3 years
  • Bought between 10 and 49 items
Tiger33 says
Purchased

This is good – great work

if you create the mvc version does it mean you are no longer updating the webforms version

will a separate purchase be required for the mvc version?

1 year ago
Author
recoding recoding replied

I’m working on a complete refactoring of the project, with some bugfixes and some new features, but I’m not going to abandon the webform version.

Simply, on the next release, you can find also an MVC Helper in the same assembly, I will not publish another component.

1 year ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
algarveweb says
Purchased

Hi Eros

I suddenly have some problems with your ImageHandler, when I try this it works

/App_Photo/Prop/45-1.jpg” id=”try” height=”120” width=”160” runat=”server” />

but this does not work, but used to work perfectly on a diferent website

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

B1.ImageUrl = “imghandler.ashx?i=/App_Photo/Prop/44-1.jpg&w=100&h=75”

End Sub

You can look it up here

http://www.property-office.com/default2.aspx

Any ideas?

Many thanks,

Mike

BTW Is there a new version out?

7 months ago
Author
recoding recoding replied

I think you’ve just missed to specify the process type, in this case I think it’s “Scale”.

Just try to use:

B1.ImageUrl = “imghandler.ashx?i=/App_Photo/Prop/44-1.jpg&w=100&h=75&pt=Scale”

and it should work.

The latest version of this control is the one you can download from here, Codecanyon, and it’s the 2.0.

Your problem could be caused by the fact that an older version of the imghandler.ashx accepts a request without the parameter ProcessType (so in other sites not updated it works), but the newest does not (so I think in this one you’re using the latest version).

Anyway, in this latest version, if you’ve to set the url to the handler manually from codebehind, you should use the Recoding.Web.ImageHttpHandler.CalculateImageSrc() static method, that allows you to specify all the needed parameters and returns a valid url to the imghandler.ashx.

So your code will be:

B1.ImageUrl = Recoding.Web.ImageHttpHandler.CalculateImageSrc(“/App_Photo/Prop/44-1.jpg”, 100, 75, ProcessTypes.Scale, ... and so on… )

Maybe a little verbose, but it works :)

Let me know!

7 months ago
  • Has been a member for 0-1 years
tkdmcode says

Hi, I am working with a colleague to implement a quick fix for thumbnails.

I want to link to a page with a url and scale and have it resize the file and send it.

I assume it will look something like this?

Is there a simple step by step to get me there? Seems like a powerful tool but I just need the 5 step ‘copy the xyz page into the root folder, add a reference to this dll, done’.

Thanks for any help you can provide,

T

7 months ago
Author
recoding recoding replied

ImageHandler only works with files physically accessible by the website that implements the DLL .

It means that if you host an image in your /public/ folder, you can access it with:

“imghandler.ashx?i=~/public/image.jpg?w=100&h=100&pt=Crop”

Server-side the handler will use a Server.MapPath upon the imageurl (i) parameter, so the original image file should exist on your web server.

You can see more demos here (for MVC ):

http://www.recoding.it/Demos/ImageHandler

and here (for WebForms):

http://www.recoding.it/ClassicWebForms/ImageHandler/Index.aspx

Hope it helps!

7 months ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
algarveweb says
Purchased

Many thanks, got it working allright now.

But it still is strange that it is working without the scale on some web-sites I had done before!

Cheers

Mike

7 months ago
Author
recoding recoding replied

Maybe in these websites you’ve used an older version of the assembly, in wich the absence of the process type still select a default (scale).

I’ve to fix this behaviour in this version too…

7 months ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
gerrysandhu says

Will this work in Web Pages (WebMatrix .cshtml)?

2 months ago
Author
recoding recoding replied

Yes, there is an MVC3 Helper in the assembly, that will work in the cshtml.

2 months ago
  • Has been a member for 4-5 years
  • Bought between 50 and 99 items
stevesuk says
Purchased

File only contains 3 projects (not 4 as documentation states). Please supply Recoding.Graphics Extensions project.

21 days ago
Author
recoding recoding replied

Thanks for the info, I’ve just submitted the new .zip Is in queue for the review, hope will be published in few hours.

21 days ago
Purchased
Default-user stevesuk replied

Many hours gone by but still not there.

21 days ago
Purchased
Default-user stevesuk replied

Got it now thsnks.

20 days ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
subzero2nth says
Purchased
How do i get this working with an image on an external website: http://cha........image.jpg Thanks. Robert
1 day ago
Author
recoding recoding replied

Hi, in order to work the ImageHandler must access the image via physical path, you cannot use an url to image, sorry.

15 hours ago

by
by
by
by
by