<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d8211560\x26blogName\x3dTech+Tips,+Tricks+%26+Trivia\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://mvark.blogspot.com/search\x26blogLocale\x3den\x26v\x3d2\x26homepageUrl\x3dhttp://mvark.blogspot.com/\x26vt\x3d-5147029996388199615', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Tech Tips, Tricks & Trivia

by 'Anil' Radhakrishna
An architect's notes, experiments, discoveries and annotated bookmarks.

Search from over a hundred HOW TO articles, Tips and Tricks


HOW TO implement online cropping feature for uploaded Images

Snipshot is a cool website that not only let's you crop images online but also enhance, rotate and save them as GIF, JPG, PDF, PNG or TIF. It also offers a free API that lets you use Snipshot for your own website.


If you wish to implement the feature all on your own, Mikesdotnetting has a neat ASP.NET solution similar to Snipshot that utilizes a jQuery plugin called JCrop.

Some six summers ago, I wrote an article on CodeProject to dynamically resize uploaded images & save in PNG format using ASP.NET & C#. The necessity for the image resizing script came because a Classic ASP website I was working on moved to the server of a different Hosting company which did not provide the ASPJpeg component that the older one threw in as part of a package deal. The CodeProject article has evoked comments with some interesting possibilities that I did not envision and helpful code suggestions.

Update (9-Apr-10): I missed trying out the Snipshot bookmarklet earlier. It's an awesome feature that lets you import any picture from any web page into Snipshot & edit it.


Related:
Free tools to generate screenshots
Guide to Most Useful Bookmarklets for Chrome, Firefox, Safari, etc.

Labels: , ,

Tweet this | Google+ it | Share on FB

« Home | Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »
| Next »

»

Post a Comment