GithubHelp home page GithubHelp logo

bkeiren / easyimgur Goto Github PK

View Code? Open in Web Editor NEW
143.0 143.0 23.0 2.97 MB

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

C# 96.46% PowerShell 1.93% Batchfile 0.07% Python 1.54%

easyimgur's People

Contributors

bkeiren avatar cxcorp avatar sobaarcier avatar tophf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

easyimgur's Issues

EasyImgur | Kernelbase.dll crash

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: 

Notifications and /exit flag

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?

stopped working with latest version of firefox/waterfox

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.

When EasyImgur exits, the notifyicon does not go away

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)

Feature request: Multi-file upload

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.

Add other clipboard upload formats

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.

Exiting causes EasyImgur to forget authorization and history

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...

Context Menu upload set as default action for images in Windows 10

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:

Context menu weirdness

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.

Explorer context menu not added

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

ERROR 400: File is over the size limit"

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:

easyimgur.log

file stat

Save the links in log file?

Hello

on the command line
is there any way to save the links in logfile .txt?
Example:
EasyImgur.exe /anonymous Speechless.jpg > logfile.txt

High memory usage

Hello,
I find it weird that this little program uses so much ram (while idle) :

image

I tried to clear my upload history but it didn't change anything.

Exceptions caused by trying to upload invalid files

When using Upload from file(s)... (anonymously) to upload files that are not valid image files, an exception is thrown by Image.FromStream on lines 323 and 411.

If trying to upload multiple images into an album, another exception will be thrown if all images fail because of reasons stated above.

Option to copy HTTPS links

Rationale:

  • imgur.com supports https
  • https is used by many sites nowadays
  • embedding a non-secure http image makes a page non-secure, Mixed Content warning looks bad.
  • manually typing 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.

Integrate into images' context menu

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.

suggestion: add option to copy image urls AND titles/descriptions

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}

[FIXED] Command line switches (to upload silently)

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

  • app uploads some file with no tray bubbles
  • app puts uploaded file link into clipboard
  • app closes

Is it possible now, or in the near future?

Actualize AssemblyInfo.cs

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.

Crashes on some images

Sometimes it just crashes without any message box.
Just stop uploading and systray icon get lost when pointing mouse over it.
win8.1

About /exit and /portable

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.

A question about requirements.

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.

(:

Updating Albums

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!

Easy Imgur running out of memory

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)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2115.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

EasyImgur
Assembly Version: 0.3.4.0
Win32 Version: 0.3.4
CodeBase: file:///C:/Users/david_hickox/Desktop/EasyImgur.exe

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2117.0 built by: NET47REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

Newtonsoft.Json
Assembly Version: 4.5.0.0
Win32 Version: 0.3.4
CodeBase: file:///C:/Users/david_hickox/Desktop/EasyImgur.exe

System.ComponentModel.DataAnnotations
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll

System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2112.0 built by: NET47REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.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.
"

Add option to hide notification tray icon

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.

"A generic error occurred in GDI+"

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)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2600.0 built by: NET471REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

EasyImgur
Assembly Version: 0.3.5.0
Win32 Version: 0.3.5
CodeBase: file:///C:/Users/dwhic/Desktop/EasyImgur.exe

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2600.0 built by: NET471REL1LAST
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

Newtonsoft.Json
Assembly Version: 4.5.0.0
Win32 Version: 0.3.5
CodeBase: file:///C:/Users/dwhic/Desktop/EasyImgur.exe

System.ComponentModel.DataAnnotations
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll

System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2556.0 built by: NET471REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.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.

Unhandled exceptions when using network interfaces

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.

Exception causing crash at start up

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?

Running out of memory

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!

option to make "/anonymous" the default ?

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 ?

EasyImgur crashing on context menu upload

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.

Images are sent as an Album

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
image

I have the settings unchecked but even if it was checked it shouldn't do it for single images
image

Can this be changed because i find this embed extremely ugly on discord

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.