bkeiren / easyimgur Goto Github PK
View Code? Open in Web Editor NEWEasyImgur is a small and simple tool to easily upload images to imgur.com
Home Page: easyimgur.bryankeiren.com
License: GNU Affero General Public License v3.0
EasyImgur is a small and simple tool to easily upload images to imgur.com
Home Page: easyimgur.bryankeiren.com
License: GNU Affero General Public License v3.0
Something must of changed in my system as of recently but I am getting the following two errors when trying to run EzImgur. I've actually re downloaded it and run it where I had extracted the file and it run fine but exhibited the same problem as soon as I authorized the app. So the problem is when the app is linked with imgur.
Steps i've used to attempt and remedy the issue.
I've verified .net 3.5 is still installed on my system
I've ran sfc and dism
I've attempted to regsrv the DLL as per a tech forum the also had no luck with that.
Error .Net Runtime Error
> Application: EasyImgur.exe
> Framework Version: v4.0.30319
> Description: The process was terminated due to an unhandled exception.
> Exception Info: System.ArgumentOutOfRangeException
> at System.Threading.Thread.Sleep(System.TimeSpan)
> at EasyImgur.ImgurAPI.TokenThread()
> at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
> at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
> at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
> at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
> at System.Threading.ThreadHelper.ThreadStart()
Error Application Error
> Faulting application name: EasyImgur.exe, version: 0.3.2.0, time stamp: 0x557c23fb
> Faulting module name: KERNELBASE.dll, version: 10.0.15063.502, time stamp: 0xc3955624
> Exception code: 0xe0434352
> Fault offset: 0x000eb802
> Faulting process id: 0x18ec
> Faulting application start time: 0x01d317d920c27be0
> Faulting application path: C:\EasyImgur.exe
> Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
> Report Id: 777f018c-8b54-4a16-98c1-19596aff4344
> Faulting package full name:
> Faulting package-relative application ID:
Hi,
this is very annoying : http://i.imgur.com/ZWtfcXx.png
can you please remove it ? or at least add an option to disable it ?
awesome little tool anyway, thanks a lot !
I run the script in portable mode with the /exit flag, and I never get any notifications about when uploads have finished. Are notifications incompatible with the exit flag?
right clicking and the upload to imgur does nothing, doesn't open new tab letting me know its uploaded, pls fix!
edit: also not sure if its because I'm on windows 8.1
edit 2: it is working, just that it doesn't automatically go to imgur after upload, nor does it automatically copy the link to clipboard, wish it did.
Currently if you exit the application, the tray icon remains until you mouse over it-- Should be a minor fix, likely you need to set .visible = FALSE and then set the tray icon object itself to = Nothing before doing .Hide() and .Close() calls... (if I recall how .NET works correctly)
I'm suggesting adding an option to upload multiples images one by one but copy all the links into 1 single "message" so i can paste 40 links at once without having to upload, paste 40 times.
One of the main features I use on the web interface is uploading multiple files at the same time-- i.e. selecting multiple files in the explorer dialog by pressing control while selecting the images. It would be nice if the application could handle such batch operations.
Currently EasyImgur can handle images and image URLs from clipboard.
Since the clipboard can also contain files and file listings, I suggest support is added for them.
Implementation could open the file (or list of files) on the clipboard, determine whether it's an image or not and upload it if it is.
A bit of refactoring could be done to declutter file to increase readability
Whenever I close EasyImgur (via right clicking tray icon and selecting "Exit") and reopen the application, it always forgets my authorization/tokens as well as my upload history. I discovered this after updating from 0.1.3 to 0.1.4. Do these API keys expire and need to be refreshed with every new instance?
The log reveals only this line:
[2014/01/08 12:01:32:5267] [INFO] Detected old tokens on disk, attempting to exchange tokens for fresh ones...
It`s hard to see when uploader winished its work.
Simple progress (xx of xx uploaded) would be handly
Hey, guys! Love the work you've done with the project since I last saw it, especially cleaning up those naming conventions (I didn't want to say anything... ;P). I ran into something weird recently, I noticed that the context menu options had been set as the default options for my images, as per the image:
I'm not sure if this is because I broke the configuration on my system specifically, or if it's because the registry tweaks I was using to get cheap context-menu support have changed on Windows 10. If I recall correctly, the registry entries I'm using I found primarily through trial-and-error, I don't remember if there's really much official documentation on the topic and I certainly don't think it's the preferred way to do context-menu tweaks. Unfortunately, the preferred way is to write shell extensions in C++ and install the resulting DLL (although, you get way more features, such as being able to run actual processing on things that are right-clicked to determine what they are and how to handle them, flyout menus, and more), and that was just too much to be necessary for a few quick features.
Anyway, long story short the context menus in general might be something worth revisiting. My finals are coming up pretty soon and then I'll be graduating so I'm a bit strapped for time right now, but I'll try to eventually get around to this if no one else does.
I unchecked, applied, re-checked, applied, that option several times, re-booted, but there is still no Imgur upload context menu in Windows Explorer. This is on Win10 64 bit
So I was trying to upload a .gif file of 18MB using EasyImgur and it throws me an error 400 saying the file is too large. Please advice on how to fix this.
But when directly uploaded through the website imgur gives no such error for the same file. Its also clearly mentioned in their site at ( https://help.imgur.com/hc/en-us/articles/208606616-What-is-GIFV- ) that GIFs upto 200MB size are supported and will be converted to GIFv files.
Image uploaded directly to imgur site : https://imgur.com/pzXksMm
Please find below the log file and a screenshot of the image stats:
nice app , but will be good to have to support for image data url to upload from clipboard , upon copying image data url it give error not valid text
thanks
Hello
on the command line
is there any way to save the links in logfile .txt?
Example:
EasyImgur.exe /anonymous Speechless.jpg > logfile.txt
Rationale:
https
https
is used by many sites nowadayshttp
image makes a page non-secure, Mixed Content warning looks bad.s
each time is kinda cumbersome and undermines the "Easy" part.So, this will be very helpful for those who mostly/exclusively use https
sites.
To add "Upload to Imgur" item to image files' context menu is enough to add a registry entry with
path : "HKCR\SystemFileAssociations\image\shell\Upload to Imgur\command
name: ""
type: "REG_SZ"
value: application_exe_path + ' "%1"'
You can add an option to register this context menu item in Settings window, as well as an option to unregister it, for that you would just simply delete "HKCR\SystemFileAssociations\image\shell\Upload to Imgur\
, if it exists.
You can also display some warning in case the registry entry exists, but has different application path set than the current application has.
When user right-clicks on an image file and selects "Upload to Imgur" application_exe_path "image_path"
will run.
Quotes are needed because image path might contain spaces.
When users selects "Upload to Imgur" on multiple images, multiple application_exe_path "image_path"
will run, one for each image.
Please add an option to also copy the title (and/or description) into clipboard, not only the URL of an uploaded image.
I.e. in addition to "copy links to clipboard" [x]
I would also like "copy title to clipboard" [x]
and "copy description to clipboard" [x]
So, if all those boxes were checked by the user, after all uploads are complete, the clipboard content would be something like this:
{title1} {url1} {description1}
{title2} {url2} {description2}
...
{titlen} {urln} {descriptionn}
#title
Dear Bryan,
command line switches of EasyImgur are not documented,
I am not even sure how many of them actually exist, but
here is a typical scenario I'd like to accomplish:
EasyImgur.exe /silent /exit %1
Is it possible now, or in the near future?
AssemblyFileVersion in AssemblyInfo.cs could be updated with each release, as well as the copyright year. Windows Explorer and various file utilities show this in tooltips, properties and so on.
Sometimes it just crashes without any message box.
Just stop uploading and systray icon get lost when pointing mouse over it.
win8.1
when i start easyimgur, the exe appear for a few seconds in the notification tray, then crash
logs just say [WARNING] Couldn't resolve assembly: 'EasyImgur.EasyImgur.resources.dll'
Hello,this is a very useful tool and i use it almost everyday.
Glad to see there is new version,but i have two problems:
I'm using ver 0.3.4 and windows7sp1(64bit)
01.When i use /portable to run easyimgur,
it still create a directory EasyImgur in user\AppData\Roaming
and i found that a forked version on https://github.com/Cologler/EasyImgur
have the true portable mode,just put setting and log in EasyImgur dir and not create another dir.
(and the forked version can use a file portable to detect if it should be run in portable)
btw.the forked version author have post a pull request last year....
#36
02.The problem of /exit command,this problem both on the original version and forked version.
Example:
Step1. I run a command EasyImgur.exe /portable /anonymous test.jpg /exit
I can see the message that EasyImgur.exe run,upload picture and look like close from system tray,
but it is only disappear from tray,the EasyImgur.exe still run in the ram.
(I can see message tell me picture is uploaded complete)
Step2.When i run the command EasyImgur.exe /portable /anonymous test.jpg /exit again
(the EasyImgur.exe from step1 is still running in the ram but can't see on tray)
Then the result is easyimgur upload the picture again and this time really exit from ram.
(But this time i can't see the message tell me picture is uploaded)
Now the /exit flag seems not really close easyimgur.exe but only make it disappear from systemtray.
Thank you for watching.
for example - hot key for select the area of the screen
I'm running Windows XP (32bit) and I was wondering for EasyImgur only worked on later OSs or 64bit architectures. The reason I ask is the tool simply doesn't work for me; more so the application icon doesn't even appear.
If this isn't due to the requirements, then I guess it's a fault from my side.
(:
After done upload, Open the Copied Image Link with Default Browser.
It should be enable/disable in General settings tab.
Hi,
could you add a setting that remove the "s" in "https" in the auto copied links after upload ?
I'm using this app mostly to post on a forum and https links are sometimes a problem.
thanks :)
cheers
Thanks for your awesome work, guys.
This program of yours is so close to being perfect, but I humbly request an additional feature to update albums so as to not create a new album every time a folder of images is uploaded.
I only wish I knew how to program so I could contribute to this project. Maybe this summer when I have time to learn!
Hi, I am trying to upload quite a few images, to be honest, but every time I try the .net framework throws an error that the uploader has run out of memory.
Is there a limit to the number of images or total file size that I should be aware of?
Thanks,
David
The error:
"See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.OutOfMemoryException: Out of memory.
at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
at EasyImgur.Form1.UploadAlbum(Boolean _Anonymous, String[] _Paths, String _AlbumTitle)
at EasyImgur.Form1.UploadFile(Boolean _Anonymous, String[] _Paths)
at EasyImgur.Form1.uploadFileAccountTrayMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.NotifyIcon.WndProc(Message& msg)
at System.Windows.Forms.NotifyIcon.NotifyIconNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
"
While this was minor, and I then uploaded the second manually, it also would make sense to put these things in a thread so that the UI remains responsive while upload occurs.
Why no body watch my pull requests ?
Could you add a way to remove the notification icon, via an command line argument. Furthermore, could you add a command line argument to not display a notification, instead of having to use the GUI.
I'm not quite sure what happened but the .net spit out this several times, even after a restart:
Thanks again,
David
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(Stream stream, ImageFormat format)
at EasyImgur.ImgurAPI.InternalUploadImage(Object _Obj, Boolean _URL, String _Title, String _Description, Boolean _Anonymous, String _AlbumID)
at EasyImgur.ImgurAPI.InternalUploadImage(Object _Obj, Boolean _URL, String _Title, String _Description, Boolean _Anonymous, AlbumResponse& _Album)
at EasyImgur.Form1.UploadAlbum(Boolean _Anonymous, String[] _Paths, String _AlbumTitle)
at EasyImgur.Form1.UploadFile(Boolean _Anonymous, String[] _Paths)
at EasyImgur.Form1.uploadFileAccountTrayMenuItem_Click(Object sender, EventArgs e)
at System.Windows.Forms.MenuItem.OnClick(EventArgs e)
at System.Windows.Forms.MenuItem.MenuItemData.Execute()
at System.Windows.Forms.Command.Invoke()
at System.Windows.Forms.Command.DispatchID(Int32 id)
at System.Windows.Forms.NotifyIcon.WndProc(Message& msg)
at System.Windows.Forms.NotifyIcon.NotifyIconNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
It seems that EasyImgur creates folder in %appdata% and %localappdata% . Can you please provide an option to avoid that.
Hey man, from what I can tell this application appears to be exactly what i'm looking for. However, i'm unfortunately unable to get it to function currently.
Any time that I do an action which requires networking/ImgurAPI such as authorization of my account or uploading files (anonymously, can't even try with an account yet), the application has an unhandled exception and I am unable to proceed. From what I gather, it appears that the dll you provided is not being loaded or used properly by the application.... I tried downloading another dll from the json.net website, however it appears that when I do that, the application complains that the assembly is TOO NEW and thus it still has an exception.
I would really like to use your application, let me know if you're able to help.
Attached below is the exception details. Additionally, some platform information: I'm on Windows 7 Ultimate x64, likely the architecture is related to the problem. When you build your releases, do you select "Any CPU" in Visual Studio? Perhaps confirm first that the assembly matches the same build, i.e. try building separate 32bit and 64bit releases to ensure there are no issues?
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.BadImageFormatException: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The module was expected to contain an assembly manifest. File name: 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' at EasyImgur.ImgurAPI.RequestTokens(String _PIN) at EasyImgur.AuthorizeForm.buttonOK_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. ************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4971 (win7RTMGDR.050727-4900) CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll ---------------------------------------- EasyImgur Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/EasyImgur/EasyImgur.exe ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4977 (win7RTMGDR.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4980 (win7RTMGDR.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4971 (win7RTMGDR.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
Been using this app for quite a while now and it has always worked fine, but it's suddenly crashing upon start up, and showing this in the log file:
[WARNING] Couldn't resolve assembly: 'EasyImgur.EasyImgur.resources.dll'
Any suggestions?
When uploading multiple Images it seems like the executable loads all files into memory at once, causing it to run out of memory at some point. Can you please optimize this behaviour, so the files will be read in sequential order to reduce RAM consumption? At the moment the program runs out of memory when using 1.5GB of RAM. I patched it with the tool from http://www.ntcore.com/4gb_patch.php but then it runs out of memory at 3.5GB, which is still a problem for large albums. Thanks!
Hello,
I try to use the command line to upload images in anonymous mode
Unfortunately the screenshot app I'd like to use do not support adding command line switches to external commands (and not using batch file either)
Could it be possible to have an option to make "/anonymous" as default ?
I thought this had been fixed, but I guess not. Lately, I've been noticing that EasyImgur crashes when I upload anonymously to Imgur from the context menu (maybe with an account or from the tray menu, I haven't really tried). When clipboard links are enabled, the link gets copied to the clipboard before the crash, but it looks like it doesn't get as far as adding the item to the history. I'll look into it a bit later, I just wanted to let you know it was happening in case you get to it before I do. It happens regardless of if clipboard links are enabled and regardless of whether EI was running beforehand or not, and nothing is written to the log file; I'd be willing to bet that nothing goes wrong when you run it under the debugger, too.
My first guess is a problem with cross-thread access; I thought I wrapped everything that needed to be called on an STA thread or from the main thread with Invoke()
but I may have missed something.
When uploading a Image (1 or more) the "direct" links (The i.imgurs links) of each images appears as "Albums" on discord
The first link is a direct upload on the website, the second is using the app
I have the settings unchecked but even if it was checked it shouldn't do it for single images
Can this be changed because i find this embed extremely ugly on discord
When I launch EasyImgur it attempts to make an HTTPS request to an unknown IP address: 46.30.215.5
.
Personally I would prefer it does not make any net requests except those necessary to function.
What's it doing this for, and is there a way to turn it off, please?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.