Works like a charm. Got a question though: How can I save a watermarked image back to the disk?
Thanks!
Works like a charm. Got a question though: How can I save a watermarked image back to the disk?
Thanks!
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.
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.
Hello.
Are you planning on publishing it for asp.net mvc and not only for web forms cause i would really like that?
Hello again. When it is ready for mvc, can you please send me an email?
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?
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.aspxAny ideas?
Many thanks,
Mike
BTW Is there a new version out?
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!
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
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/ImageHandlerand here (for WebForms):
http://www.recoding.it/ClassicWebForms/ImageHandler/Index.aspxHope it helps!
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
Will this work in Web Pages (WebMatrix .cshtml)?
File only contains 3 projects (not 4 as documentation states). Please supply Recoding.Graphics Extensions project.
COPYRIGHT © 2012 ENVATO| TERMS OF USAGE| SUPPORT/HELP| ICONS BY TANGO + WEFUNCTION + FAMFAMFAM
Adobe®, Flash®, Flex®, Fireworks®, Photoshop®, Illustrator®, InDesign® and After Effects® are registered trademarks of Adobe Systems Incorporated.
48 Purchases
11 Comments