Questions tagged [imgur]

Imgur is a free and popular image hosting service that does not require registration to use.

Imgur is a free and popular image hosting service that does not require registration to use.

572 questions
4
votes
0 answers

Invalid API key issue when trying to upload image via Imgur API

I signed up for the Imgur API and registered a test app and recoived a Client ID and a Client Secret. I then tried to use this code: try { var image = canvas.toDataURL('image/jpeg', 0.9).split(',')[1]; } catch(e) { var image =…
user967451
4
votes
1 answer

Imgur API version 3 uploading examples?

I'm trying to add this functionality to a C# Windows app I have in development, for uploading images to Imgur. Unfortunately it has to be Imgur, as that site is the requirement. The problem is that whatever C# example code I can find is old and…
Ahmad
  • 12,886
  • 30
  • 93
  • 146
4
votes
2 answers

Exception thrown when WebAuthenticationBroker receives an OAuth2 callback

The WebAuthenticationBroker doesn't seem to be able to handle navigation to my ms-app://. Just throws this ugly error as you will see below. Steps Call AuthenticateAsync(), including callback uri obtained at runtime:…
erodewald
  • 1,815
  • 20
  • 45
4
votes
2 answers

How can be scraped using PHP curl a webpage with infinite scroll?

I'd like to know how can be scraped in a loop (page 1 page 2etc....) a webpage which has infinite loops (like imgur) for example ... ? I tried the code below, but it returns only the first page. How can I trigger the next page due to infinite…
Max Sanchez
  • 73
  • 1
  • 7
3
votes
2 answers

Imgur, get user's albums using PHP and OAuth

I'm trying to list the albums from a single user in imgur. As far as I've read in the API, information about albums can only be fetched using the authenticated API, which is quite a curious decision, because you can upload images and messages with…
José Tomás Tocino
  • 9,873
  • 5
  • 44
  • 78
3
votes
1 answer

Uploading pic to imgur by TRESTClient is not working

I want to upload a jpg file to imgur and get the jpg's link. I have imgur API's Client Id and Client Secret. Delphi code as below: procedure TfrmMain.Button6Click(Sender: TObject); var client: TRESTClient; request: TRESTRequest; response:…
Mitchell Hu
  • 105
  • 1
  • 6
3
votes
1 answer

python - aiohttp.ClientSession().post

So, I had this code and it worked perfectly fine: def upload_to_imgur(url): j1 = requests.post( "https://api.imgur.com/3/upload.json", headers=headers, data={ 'key': api_key, 'image':…
Ben
  • 33
  • 6
3
votes
1 answer

Getting blank image when using imgur's API

I'm currently developing a small script to take screenshots and upload them to imgur using Python. The code looks like this: import time import os import ImageGrab import urllib import urllib2 time.sleep(1) shot = ImageGrab.grab() dir =…
Fernando Martin
  • 512
  • 1
  • 6
  • 21
3
votes
2 answers

How does Imgur create encrypted file names to all the images it hosts?

I was planning on hosting images on a server and wanted to use the same sort of file naming encryption mechanism. Is it just a hash?
Strong Like Bull
  • 11,155
  • 36
  • 98
  • 169
3
votes
3 answers

How to upload an mp4 (or other video) to Imgur using the API?

I am using the Imgur API to upload images to albums, as part of a Reddit bot. However, when I try to upload MP4 files I get an error: "File type invalid (1)". Uploading the exact same MP4 file using the website works just fine. I am using this…
John Doe III
  • 33
  • 1
  • 3
3
votes
1 answer

How do I upload multiple images to an imgur album from command line?

This is what I have now, it works on a single image. curl -vH "Authorization: Client-ID 3e7a4deb7ac67da" -F image=@/path/to/image https://api.imgur.com/3/upload.xml to get the result open in your browser, I have curl -vH "Authorization: Client-ID…
Shuman
  • 3,914
  • 8
  • 42
  • 65
3
votes
2 answers

Image format on imgur

I'm playing around in python trying to download some images from imgur. I've been using the urrlib and urllib.retrieve but you need to specify the extension when saving the file. This isn't a problem for most posts since the link has for example…
3
votes
3 answers

Imgur gifv file doesn't load as expected using video tag

This doesn't seem to load the video. I assume the .gifv is messing it up somehow when…
frosty
  • 2,779
  • 6
  • 34
  • 63
3
votes
3 answers

Python regex: Matching a URL

I have some confusion regarding the pattern matching in the following expression. I tried to look up online but couldn't find an understandable solution: imgurUrlPattern = re.compile(r'(http://i.imgur.com/(.*))(\?.*)?') What exactly are the…
Vatsal Mishra
  • 109
  • 2
  • 10
3
votes
2 answers

Mashape Imgur node.js image upload

Trying to upload users image but without success. HTML: Front-End JS: var fileInput = document.getElementById('gg_test_input'); fileInput.addEventListener('change', function(e) { var file = …
Pumych
  • 1,368
  • 3
  • 18
  • 31