BlendInteractive.Umbraco.AltTextAi 1.0.2

Prefix Reserved
dotnet add package BlendInteractive.Umbraco.AltTextAi --version 1.0.2                
NuGet\Install-Package BlendInteractive.Umbraco.AltTextAi -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlendInteractive.Umbraco.AltTextAi" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BlendInteractive.Umbraco.AltTextAi --version 1.0.2                
#r "nuget: BlendInteractive.Umbraco.AltTextAi, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BlendInteractive.Umbraco.AltTextAi as a Cake Addin
#addin nuget:?package=BlendInteractive.Umbraco.AltTextAi&version=1.0.2

// Install BlendInteractive.Umbraco.AltTextAi as a Cake Tool
#tool nuget:?package=BlendInteractive.Umbraco.AltTextAi&version=1.0.2                

Blend Umbraco AltTextAI


License: MIT NuGet version (BlendInteractive.Umbraco.AltTextAi)

This is a simple package that integrates the AltText.AI text generation service with the Umbraco media library.

The package will send all image media objects that have an empty alt text field to the alttext.ai service and add the AI-generated alt text to the media object. The generation happens as a background task so that the performance of editor's workflow isn't affected.

Installation

You can add the package to your Umbraco instance using either the command line or the Nuget package manager.


Command Line

dotnet add package BlendInteractive.Umbraco.AltTextAi

Or Nuget

Install-Package BlendInteractive.Umbraco.AltTextAi

Configuration

First, in the Umbraco Backoffice, go to the setup tab and add a field to your image objects to hold your alt text. Take note of the property alias (we recommend calling the field "Alt Text", with an alias of "altText")

Next, you'll need to add a section to your appsettings.json file to configure the package.

  "AltTextAi": {
    "ImageAltTextProperty": "altText",
    "AltTextAiApiKey": "<YOUR API KEY GOES HERE>"
  }

In the "ImageAltTextProperty" setting, add the alias for your alt text field you've just added. This is where the package will look for and write generated alt text.

In the "AltTextAiApiKey" setting, add an API Key from your AltTextAI account. You'll need an alttext.ai account for this. A free trial is available.

Once you have an account, the AltText.AI documentation explains how to create an API Key.

After this is completed, restart your Umbraco instance. Whenever an image is uploaded, or an existing one without alt text is saved, you should see alt text added to the field you specified within a few seconds.

You can edit the alt text manually if you wish. The AI will only generate text if the field is blank.

Note that each generation consumes a credit with the alttext.ai service!

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 190 6/11/2024
1.0.1 106 6/4/2024