animechan icon indicating copy to clipboard operation
animechan copied to clipboard

I wonder if you can add pictures of the characters

Open Clyptex opened this issue 4 years ago • 6 comments

and if there's any way to access all the characters names :+1: Thanks for the API

Clyptex avatar Oct 20 '20 07:10 Clyptex

Yes. We can do that and I even thought about the execution before but that would require a lot of time to execute plus it would need a dedicated database that supports media files like Cloudinary which has different pricing plans and since this is just an open-source project I don't want to spend a few extra bucks on adding that feature. Unless someone is willing to back it financially.

rocktimsaikia avatar Oct 27 '20 13:10 rocktimsaikia

@RocktimSaikia What if you send the image as base64 in the response?; you can store it as text in the mongodb document

AndresMorelos avatar Mar 09 '21 23:03 AndresMorelos

@AndresMorelos That would still require a lot of time. To get the images first then linking to their corresponding characters. So I don't plan on investing time in adding this feature for now. Although I never tried it with MongoDB before I am sure it would not optimize the images. I only prefer MongoDB for text-based data storage, not for media storage. Maybe in the future, If I ever get time I will think about it.

rocktimsaikia avatar Mar 10 '21 05:03 rocktimsaikia

@RocktimSaikia why don't you add the images as some sort of link. Like imgur links? If users every needed to extract image data, they could do so within their own code.

justanotherbyte avatar Mar 23 '21 18:03 justanotherbyte

For a personal project I am using the AniList API. I'm taking the character name I get of a quote by animechan and form a simple GraphQL query.

This is what my query looks like:

{
  Character(search: "Levi") {
    name {
      first
      last
      full
      native
    }
    image {
      large
    }
    #description
}

Inside the response I get a link to an image of the character. In this case: https://s4.anilist.co/file/anilistcdn/character/large/b45627-CR68RyZmddGG.png

Maybe this can help you @ThanksILoveYouWithAllTheRespect.

boneskewer69 avatar Apr 05 '21 11:04 boneskewer69

just thought copyright law might be worth mentioning, as you'd need permission from each studio/publisher to use the image(s) in question, to be legally allowed to serve it to the end user(s)

djfjfofoc3 avatar Nov 16 '21 11:11 djfjfofoc3

just thought copyright law might be worth mentioning, as you'd need permission from each studio/publisher to use the image(s) in question, to be legally allowed to serve it to the end user(s)

I don't think studios would bother about having an API that shows their info. Do you really think that MAL/AL/Kitsu/etc ask every studio if they can use the cover?

Nekidev avatar Sep 22 '22 19:09 Nekidev

Yes. We can do that and I even thought about the execution before but that would require a lot of time to execute plus it would need a dedicated database that supports media files like Cloudinary which has different pricing plans and since this is just an open-source project I don't want to spend a few extra bucks on adding that feature. Unless someone is willing to back it financially.

@rocktimsaikia If people are still hoping for this, I guess our group could back this up without burning so much cash. Like I said, we're willing to back it up and see how it goes. If the images don't have copyright issues or just the cover images, looking at MAL, I don't think it's impossible and if studios wouldn't mind people seeing cover images, especially if that will give them more exposure to the shows they made.

We even run some other services (e.g. mirrors) & succeeded in handling at least 2m+ requests in the last 30 days with almost no problem. Supporting this project shouldn't be much of a problem. :) In case anyone's interested, I'm available on Discord !Castellalala~#0218.


For a personal project I am using the AniList API. I'm taking the character name I get of a quote by animechan and form a simple GraphQL query.

This is what my query looks like:

{
  Character(search: "Levi") {
    name {
      first
      last
      full
      native
    }
    image {
      large
    }
    #description
}

Inside the response I get a link to an image of the character. In this case: https://s4.anilist.co/file/anilistcdn/character/large/b45627-CR68RyZmddGG.png

Maybe this can help you @ThanksILoveYouWithAllTheRespect.

One of the problems of getting the images from AL or similar services is that it works, but if you'll make a service that's growing on top of it (e.g. a Discord bot, etc.), you'll have to contact them and ask if they're fine with your usage quota. If they think you're a burden, you'll have to show some consideration by donating to them since servers & bandwidth aren't cheap.

But hey if that works, that works. But only for personal project, and if you're planning on making a bot or something, and it has a growing user base, better find a dedicated solution for it.

galpt avatar Oct 19 '22 06:10 galpt