Giter Site home page Giter Site logo

animxer1 / flamekiller22.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from flamekiller22/flamekiller22.github.io

0.0 0.0 0.0 349 KB

This repository was created for a better experience for scanlators who want to upload their manga images to imgur and use them in their wordpress theme if it does not support imgur by default.

Home Page: https://flamekiller22.github.io/

JavaScript 31.79% HTML 68.21%

flamekiller22.github.io's Introduction

Imgur API

This project was made for the sole purpose of getting img tags that can be used in html to show the images pesent in an imgur album. If you wish to use this repo you will need an imgur account. Don't worry it's completely free.

How to use it

To use this service you need:

  • A Client ID that is provided by Imgur when you register an app.
  • The Album ID of the album from which you want to retrieve the images.

The process for obtainig/finding the above mentioned requirements has been written below.

Imgur Client ID

The Client ID is used as authentication for the Imgur API. To get your client ID you can go to this link and register your app there.

Note: If you have a Client ID but have forgotten it or lost it you can find it here.

While registering your app you can choose any of the options provided, however if you are creating the app only to use it for this repo then I reccomend you go with this:

App Registration

After this enter your email id and that's it. After clicking the submit button you will be redirected to a page that looks something like this:

Client ID and Client Secret

The Client ID provided there will be your Client ID. In this case we do not require the Client Secret. Also don't try using the Client ID in the image provided, I have already deactivated it.

Imgur Album ID

The link for an imgur album will be something like this: https://imgur.com/a/bg7wPeB or https://imgur.com/gallery/bg7wPeB.

From this link copy the part that is after imgur.com/a/ or imgur.com/gallery/, that is bg7wPeB. This is the Album ID.


Additional Points

  • This repo also automatically copies the img tags onto your clipboard for ease of access. If by any chance it failed, the img tags are provided on the website and you can manually select them and copy them.

  • The img tags will automatically have an alt which will be the decription of the image that you added on imgur. You can use this for sorting if required.

  • This website automatically stores the last used Client ID in the browsers local storage and retrieves it when you revisit the site for ease of access.

  • By default this repo will return the img tags with a padding-bottom: 15px;. This will create a padding, or to better understand, a gap of 15 pixels between the image and anything that is present at the bottom of the image.

flamekiller22.github.io's People

Contributors

flamekiller22 avatar

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.