Simon Brown Posted December 22, 2008 Share Posted December 22, 2008 (edited) MODERATORS NOTE: this plugin no longer functions, and is no longer available. Download Uploading images to the internet is common nowadays, and yet it still takes effort to save the image to one's hard-disk, go to a photo hosting service, find the image in your badly organized file-system and copy the link. This plugin allows you to just flatten the image, select Effects -> Tools -> Upload to... and follow the on-screen instructions. Hidden Content: How to add Photobucket support. Download PhotobucketNet, rename it to PhotobucketNet.dll and place it in the same folder (Paint.NETEffects) as UploadTo. Edited July 9, 2018 by toe_head2001 Quote Link to comment Share on other sites More sharing options...
007 Nab Posted December 22, 2008 Share Posted December 22, 2008 YES! This is like a built in QuickShot. Very awesome Simon, thank you. EDIT: Got an "upload failed" message. I think it's because the image size was larger than 1.5mb. Would there be a way of implementing an image compressor type thing? Not necessarily a resizer... but as in Quick Shot, where it somehow magically gets the image onto the web without resizing or too much quality loss. Quote "pyrochild, you're my favorite person ever. We should go snowboarding some time."~ 007 Nab. Ish. PDN Gallery | I Made a Deviant Art! Link to comment Share on other sites More sharing options...
Simon Brown Posted December 22, 2008 Author Share Posted December 22, 2008 I guess I could do that automatically if I knew ImageShack's maximum size. I guess I could have it use JPEG automatically, but that wouldn't support transparency. Allowing the user to configure the upload would, of course, mean another click (at the least) for the user. Quote Link to comment Share on other sites More sharing options...
007 Nab Posted December 22, 2008 Share Posted December 22, 2008 Still better than necessarily opening up a whole new web window. I wouldn't mind having to go through a couple of buttons. Do you know what Quick Shot uses to compress the PNGs? Maybe that could be implemented. Quote "pyrochild, you're my favorite person ever. We should go snowboarding some time."~ 007 Nab. Ish. PDN Gallery | I Made a Deviant Art! Link to comment Share on other sites More sharing options...
Simon Brown Posted December 22, 2008 Author Share Posted December 22, 2008 I have no idea. What would you say to it just automatically resizing to the highest size availible in QuickShot? Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted December 23, 2008 Author Share Posted December 23, 2008 Update posted. Quote Link to comment Share on other sites More sharing options...
007 Nab Posted December 23, 2008 Share Posted December 23, 2008 Ugh... I dunno about straight resizing. Could there be a combination of quality-loss and resizing? So there is less resizing involved? I'll check out the update when I can. Quote "pyrochild, you're my favorite person ever. We should go snowboarding some time."~ 007 Nab. Ish. PDN Gallery | I Made a Deviant Art! Link to comment Share on other sites More sharing options...
Blooper Posted December 23, 2008 Share Posted December 23, 2008 Great, definitely going to use... Quote http://synthastic.deviantart.com http://soundcloud.com/siderealenterprise Lockerz invites are available, PM me Link to comment Share on other sites More sharing options...
Simon Brown Posted December 26, 2008 Author Share Posted December 26, 2008 Update posted. Quote Link to comment Share on other sites More sharing options...
Gamer_World14 Posted December 26, 2008 Share Posted December 26, 2008 would it be possible to do the same things for other sites like photobucket or deviantart? this plugin looks awesome! nice job. Quote deviantART | Paint.NET Gallery | bennettfrazier.com <-- (My new Website!) Link to comment Share on other sites More sharing options...
Simon Brown Posted December 26, 2008 Author Share Posted December 26, 2008 I may do it with Photobucket, but I havn't heared of a dA API. If you can find an API for a popular photo upload service I will consider adding support. Quote Link to comment Share on other sites More sharing options...
Gamer_World14 Posted December 26, 2008 Share Posted December 26, 2008 I am not really sure what the API is so I just searched google and this is what i got to... i was wondering if you could help a little bit? Photobucket Developer Documentation Quote deviantART | Paint.NET Gallery | bennettfrazier.com <-- (My new Website!) Link to comment Share on other sites More sharing options...
Simon Brown Posted December 26, 2008 Author Share Posted December 26, 2008 I have heared of the Photobucket API, which is why I only said I couldn't find one for dA. :wink: Quote Link to comment Share on other sites More sharing options...
9ale7 Posted December 29, 2008 Share Posted December 29, 2008 hope you are still working on photobucket 8) also i thought of another one which is http://www.divshare.com Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted December 29, 2008 Author Share Posted December 29, 2008 hope you are still working on photobucket I've given up for now. :oops: Quote Link to comment Share on other sites More sharing options...
9ale7 Posted December 29, 2008 Share Posted December 29, 2008 what a shame........................ :shock: it would be great, but anyway hope someone else continue. thanks Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted December 29, 2008 Author Share Posted December 29, 2008 Just one PhotoBucket - not the entire plugin. Quote Link to comment Share on other sites More sharing options...
Blooper Posted December 29, 2008 Share Posted December 29, 2008 It's good as it is if you ask me. It makes making forum markers MUCH faster. Quote http://synthastic.deviantart.com http://soundcloud.com/siderealenterprise Lockerz invites are available, PM me Link to comment Share on other sites More sharing options...
9ale7 Posted December 30, 2008 Share Posted December 30, 2008 Just one PhotoBucket - not the entire plugin. yes of course , i think photobucket is really famouse and has so many people even in his forum, i noticed many useing it, imageshake is still good but i started my pictures in photobucket because of the storage and bandwidth. so still hope photobucket appear, and HOPE 2 SEE OTHER IDEAS LIKE THIS APPEAR :twisted: those are other things that for sure will make Paint.NET really stand out Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted January 1, 2009 Author Share Posted January 1, 2009 Is anyone interested in me posting imageshack.cs and details of the methods provided to easily perform a POST to allow people to add new sites to be included in future versions? Quote Link to comment Share on other sites More sharing options...
niteice Posted January 3, 2009 Share Posted January 3, 2009 That would be most helpful, as I've been considering writing a plugin to automatically FTP an image to my web host and would like to use yours as a base. Quote Link to comment Share on other sites More sharing options...
9ale7 Posted January 3, 2009 Share Posted January 3, 2009 That would be most helpful, as I've been considering writing a plugin to automatically FTP an image to my web host and would like to use yours as a base. hope you add it tp photobucket. 8) Quote Link to comment Share on other sites More sharing options...
RyuinfinityPDN Posted January 3, 2009 Share Posted January 3, 2009 If we don't get Photobucket support I will eat your soul. Quote -- Make an Explosion in Space-- Link to comment Share on other sites More sharing options...
Simon Brown Posted January 4, 2009 Author Share Posted January 4, 2009 Here is ImageShack.cs: using System; using System.Collections.Generic; using System.Text; using System.Drawing; using System.IO; using System.Collections.Specialized; using System.Net; using System.Xml; using System.Windows.Forms; namespace ImageShackUpload.UploadSites { public class ImageShack : SiteInterface { String SiteInterface.Name() { return "ImageShack"; } String SiteInterface.TokenUrl() { return "http://profile.imageshack.us/registration/"; } Boolean SiteInterface.AllowsGuests() { return true; } String SiteInterface.UploadImage(Image image, String token) { NameValueCollection queryString = new NameValueCollection(); queryString["xml"] = "yes"; if (!String.IsNullOrEmpty(token)) queryString["cookie"] = token; String tmpHome = Path.Combine(Path.GetTempPath(), "szhxndxksmmws.png"); image.Save(tmpHome); String returnMessage = PostTools.UploadFileEx( tmpHome, "http://www.imageshack.us/index.php", "fileupload", "image/png", queryString, new CookieContainer()); File.Delete(tmpHome); return returnMessage; } UploadedImage SiteInterface.ParseResponse(String response) { XmlDocument responseDoc = new XmlDocument(); responseDoc.LoadXml(response); XmlNode linkList = ((XmlDocument)responseDoc).GetElementsByTagName("links")[0]; UploadedImage uploadedImage = new UploadedImage(); uploadedImage.Hyperlink = Helpers.FindChild(linkList, "ad_link").InnerText; uploadedImage.DirectLink = Helpers.FindChild(linkList, "image_link").InnerText; return uploadedImage; } } } To more easily do a POST use the following method: PostTools.DoPost(String url, String args); The token variable is what the user typed in as their registration code. The "token url" is the web address the user is sent to if they click the link to tell them how to construct this code. You'll need to find a way to compact all details into this one box, I didn't allow UI customisation to avoid complicating things. If you don't have a website to host the instructions either use TinyPaste or simply post them in this thread. Post any sites you add support for and I will consider adding them. (and, of course, give you credit) If your site requires an API key leave it out and I will register and add my key in. Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted January 4, 2009 Author Share Posted January 4, 2009 Note that DoPost() returns a String. Oh, and to do an md5 (for hashes) use the following method: String md5(String text); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.