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.

536 questions
85
votes
5 answers

Deserializing polymorphic json classes without type information using json.net

This Imgur api call returns a list containing both Gallery Image and Gallery Album classes represented in JSON. I can't see how to deserialize these automatically using Json.NET given that there is no $type property telling the deserializer which…
Peter Kneale
  • 1,502
  • 4
  • 17
  • 26
59
votes
4 answers

The type List is not generic; it cannot be parameterized with arguments [HTTPClient]

import java.awt.List; import java.awt.image.BufferedImage; import java.io.BufferedReader; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.InputStreamReader; import java.util.ArrayList; import javax.imageio.ImageIO; import…
user2526311
  • 992
  • 2
  • 9
  • 19
53
votes
3 answers

Upload images to Imgur from Mathematica

Here's a challenge to all mathematica tag followers. Let's make it a lot more convenient to insert images into SO post from Mathematica by creating an imgur uploader. How can we create a function imgur[g_] that will rasterize its argument (making…
Szabolcs
  • 21,860
  • 5
  • 72
  • 158
23
votes
4 answers

Is there any harm in hosting images off site?

Is there any harm hosting images through a website like Imgur then using the code provided to insert it into my website? Versus the traditional way of hosting the images on my server and linking them appropriately.
Nick Apromollo
  • 472
  • 5
  • 11
17
votes
2 answers

Making HTTP Request with header in Swift

I am trying to make an HTTP request to the Imgur API. I am trying to retrieve all images associated with the tag "cats." The url, according to the Imgur API is: https://api.imgur.com/3/gallery/t/cats the Imgur API states the following about the…
joey
  • 3,433
  • 8
  • 41
  • 64
16
votes
1 answer

Imgur API Version 3 JavaScript upload example

All the examples I find online are of earlier versions of the Imgur API or non JS code all of which uses an API key which doesn't exist in the newer API. Instead you get a client_id and secret. Anyone have example code that shows how an image can be…
user967451
15
votes
1 answer

What is an "authorization callback url?" for imgur and what should mine be?

I'm trying to write a program to upload an image to imgur and return the url. I want to start trying to play around with the api, but to register for my client id, one of the required fields is the "Authorization callback url." The description says…
user2816570
  • 317
  • 1
  • 4
  • 13
15
votes
3 answers

using imgur api v3 to upload images anonymously using php

I am planning to upload images to imgur anonymously using its api, i registered my application in the anonymous upload category and got client id and client secret, How to use php to upload image to imgur and retrieve direct url to the image? can…
scottydelta
  • 1,586
  • 3
  • 17
  • 38
14
votes
3 answers

Imgur delete anonymous upload (Greenshot)

Need your help... thanks to Greenshot a missclick is sufficient to post a picture online to Imgur. (I did...and now I want to delete it) the picture has been posted using anonymous mode. Because I didn't post it manually I do not have the delete…
luney
  • 303
  • 1
  • 2
  • 8
13
votes
1 answer

How does image pasting in imgur work in Firefox?

Open an image editing program, copy an image (don't copy from a browser - I'll explain why later). Open Firefox and go to http://imgur.com Press Ctrl+V Look with utter amazement at the image you copied before being uploaded. I know about the…
Roman
  • 5,300
  • 20
  • 40
9
votes
2 answers

Imgur API Failed to load

I get this in the console: Failed to load https://api.imgur.com/3/image: The 'Access-Control-Allow-Origin' header contains the invalid value ''. Origin 'https://example.org' is therefore not allowed access. and this is my code: var…
keydo
  • 93
  • 4
9
votes
2 answers

CORS issues with jQuery Dropzone and upload to Imgur

I tried to use jQuery Dropzone to upload an image to Imgur or any other domain but that's not working. This is my dropzone setup: $("div.dropzone").dropzone success: -> console.log arguments paramName: "image" method: "post" maxFilesize: 2 …
Vinz243
  • 8,090
  • 9
  • 35
  • 74
9
votes
1 answer

Getting image info anonymously through Imgur API in C#

I'm trying to anonymously get image data (like image sizes) through the Imgur Version 3 API through C#. Their documentation states The API requires each client to use OAuth 2 authentication. This means you'll have to register your application,…
Narabhut
  • 809
  • 4
  • 12
  • 26
7
votes
3 answers

POSTing to external API throws CORS but it works from Postman

I am using the imgur api to upload images via a node js app. I am converting images to base64 strings and sending them via Postman works great. I use node-fetch to make api calls. const fetch = require('node-fetch') ... async…
Cristian G
  • 97
  • 1
  • 1
  • 15
6
votes
2 answers

Uploading a png to imgur using javascript

I'm trying to use Javascript to upload a png to imgur. I've used the code directly from the Imgur API example, but I don't think I am passing the png file properly as I get an error message saying file.type is undefined. I think the file is ok as…
djq
  • 13,348
  • 42
  • 111
  • 148
1
2 3
35 36