Support » Plugin: Automatic Alternative Text » Regarding the plugin not working

  • ResolvedPlugin Author Jacob Peattie

    (@jakept)


    Hi,

    I just wanted to post a topic regarding the plugin having ceased to function.

    The issue with the plugin is that when I created it Microsoft only had one API endpoint and a relatively simple process for getting an API key. However Microsoft has now made the Computer Vision API a Microsoft Azure service which means that there are now multiple emdpoints for the API and acquiring a key is a different process than it used to be. So now when you enter an API key it won’t necessarily be valid for the API endpoint in the plugin and you won’t get any alt text on your images.

    Unfortunately I haven’t had the time to work on the plugin lately, but I am aiming to release an update within the next couple of weeks that will include better instructions and support for the Azure endpoints.

    As part of this I have moved the plugin to GitHub, where you can follow development or contribute:

    https://github.com/JakePT/automatic-alternative-text

    Thanks for your patience.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Contributor bwagdrive

    (@bwagdrive)

    Hi there, I submitted a pull request to your project. I seem to have gotten your plugin fixed and working for myself and wanted to get others on their way too.

    If anyone wants to download my patch you can do so here:
    https://github.com/bwagner182/automatic-alternative-text

    Plugin Author Jacob Peattie

    (@jakept)

    Thanks for the help! I’m a bit flat out at the moment but will try to review it soon.

    Plugin Author Jacob Peattie

    (@jakept)

    I’ve merged Bret’s changes and made a couple of additional tweaks. If the plugin is not working for you go to Settings and add your Endpoint URL. If you don’t know it you should be able to find it for the trial version here: https://azure.microsoft.com/en-au/try/cognitive-services/my-apis/

    If you have signed up for azure, you can get the API keys and Endpoint from the Azure Portal: https://portal.azure.com/

    Sign in, select your Cognitive Services resource and go to the Overview and it will appear under “Essentials”.

    If you have not added a resource yet, you can get an endpoint and API key by clicking Create a Resource, selecting AI + Machine Learning and then finally Computer Vision. Enter a name, choose a subscription and pricing tier (A free tier will be available if you’re not already using it) and click Create, down the bottom. Now you will see the resource on the dashboard and can find your keys and endpoint by clicking it and going to the tab. They will appear under “Essentials”.

    Hi, great that you updated the plugin.

    In my case it is not working.
    I tried both v1 and v2 endpoints and both keys provided, but nothing happened.
    Also checked what is in plugin’s FAQ – still nothing.
    Disabled all the plugins except AAT – null.

    Do u have any other what could be the reason?

    Thank you
    as

    Plugin Author Jacob Peattie

    (@jakept)

    @skroboladam Can I just ask what the endpoint URLs you’re using look like? They should look like this:

    https://australiaeast.api.cognitive.microsoft.com/vision/v1.0
    

    But australiaeast will be whatever region you set yourself up on. If you’re just using the trial I believe it should be https://westus.api.cognitive.microsoft.com/vision/v1.0.

    And just for some more detail can you let me know how you obtained your key? Did you get it through the Azure Portal, or did you sign up for a trial here?

    If you’re on the WordPress Slack you could send me your API Key and Endpoint URL to test with if you’d like.

    • This reply was modified 2 years, 9 months ago by Jacob Peattie.

    Well, it looks like after plugin reinstall it works just fine.

    The endpoint is exactly like you wrote – https://westus.api.cognitive.microsoft.com/vision/v1.0 – it is a trial API.

    Thanks!
    Great plugin!

    Plugin Author Jacob Peattie

    (@jakept)

    Happy to hear it! Can’t think of a reason why a reinstall would be necessary, but I’m glad it helped.

    Hi,

    I hate to reopen a resolved feed but I’m having the same issue with the plugin not working. I have the endpoints and api set, seem to have the same issue @skroboladam was having without the fix. Installed, created azure account, entered endpoint and api, uploaded an image but nothing is entered nor happened. Please help.

    Plugin Author Jacob Peattie

    (@jakept)

    If you enter the URL to the image on this page do you get a result?

    https://azure.microsoft.com/en-au/services/cognitive-services/computer-vision/

    yes, but nothing is showing up in the media logs in the alt text area. I get the same result for all images in that test link you provided, but nothing is appearing or being entered for indexing site wise. I’m not sure what i’m doing wrong.

    • This reply was modified 2 years, 6 months ago by guardian88.
    • This reply was modified 2 years, 6 months ago by guardian88.
    Plugin Author Jacob Peattie

    (@jakept)

    Are you able to share one (or more) of the images you’re attempting to use with me so I can do some testing?

    https://waynesborohearingandbalance.com/wp-content/uploads/2018/09/annie-spratt-678202-unsplash.jpg

    Do you have slack or another means of communication for troubleshooting other then this forum?

    Any updates? I have checked the endpoints and created the resource in my Azure dashboard to make sure the endpoint and key are true, which they are. Still having zero luck with the plugin working.

    Plugin Author Jacob Peattie

    (@jakept)

    @guardian88 Sorry mate, I’ve been away and haven’t had an opportunity to respond. The plugin is offered for free and I don’t promise any support, as it’s a side project and not my full-time job, let alone live chat support, but I’ll try and help out when I have the opportunity,

    That being said, I have just tested the plugin again by creating a new WordPress install, installing a fresh copy of the plugin from the repository, and entering my API details into the Media settings.

    When I uploaded the image you linked to, I successfully received a caption: “A sign on the side of a building”:

    https://i.imgur.com/McHvd4r.jpg

    And this was with the default confidence threshold of 15%.

    Can you make sure that you’re entering the correct details. When you create your resource you should see a screen like this. The Endpoint URL setting should be the Endpoint you see in the red box. The API key should be one of the two keys that you’ll be given when clicking Show access keys….

    Also please note, as mentioned on the plugin page, that the plugin does not provide captions for images that have already been uploaded. You will need to upload the image after activating the plugin.

    If all of that is ok, can you please check the demo page again, but this time using the URL of the image after uploading to your site, to make sure there aren’t any issues with the API reading from your server.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Regarding the plugin not working’ is closed to new replies.