You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,15 @@
1
1
# Release Notes for AI Alt Text
2
2
3
+
## 1.5.3 - 2025-05-09
4
+
- Improve bulk action notice wording
5
+
- Improved logic to not skip generating alt text for an asset where a job is in the queue but it has a failed status
6
+
- Replacing `preSaveAsset` setting with `propagate` setting, `preSaveAsset` tried to resolve an issue where the same value could be saved over multiple sites. Could sometimes cause errors e.g. `Failed to pre-save asset: filename.png`,
7
+
- Replacing native `file_get_contents` function with `$assets->getContents` in animated gif test, which is more reliable across asset different platforms
8
+
- Removing tests to check an asset's file extension which is not a reliable way to ascertain if the file will be accepted by the OpenAI API
9
+
- Updating tests to check an asset's mime type to ascertain if an image transform to a different format is required before it is sent to OpenAI API
10
+
- Added new test to check if resulting transform which will be sent to OpenAI is accepted mime type
11
+
- Added new test to check if SVGs can be transformed to an accepted mime type
12
+
3
13
## 1.5.2 - 2025-05-06
4
14
5
15
- Updating changelog formatting slightly to test supporting Craft's `Utilities → Updates` screen
Copy file name to clipboardExpand all lines: src/models/Settings.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -48,9 +48,9 @@ class Settings extends Model
48
48
publicstring$openAiImageInputDetailLevel = 'low';
49
49
50
50
/**
51
-
* @var bool Whether to pre-save the asset if alt field is empty before saving a value to it, prevents same value being saved to each Site
51
+
* @var bool Whether the asset should be saved across all of its supported sites, if enabled it could save the same initial alt text value across all sites.
52
52
*/
53
-
publicbool$preSaveAsset = true;
53
+
publicbool$propagate = false;
54
54
55
55
/**
56
56
* @var bool Whether to save the translated result to each Site's Asset's translatable alt text field
@@ -74,7 +74,7 @@ public function defineRules(): array
Copy file name to clipboardExpand all lines: src/templates/_settings.twig
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -117,12 +117,12 @@
117
117
}) }}
118
118
119
119
{{ forms.lightswitchField({
120
-
label: 'Pre-save Asset'|t('aialttext'),
121
-
id: 'preSaveAsset',
122
-
name: 'preSaveAsset',
123
-
instructions: "If enabled, the plugin will pre-save the asset if alt field is empty before saving a value to it, prevents same initial value being saved to each Site"|t("aialttext"),
124
-
on: settings.preSaveAsset,
125
-
errors: settings.getErrors('preSaveAsset'),
120
+
label: 'propagate'|t('aialttext'),
121
+
id: 'propagate',
122
+
name: '',
123
+
instructions: "Whether the asset should be saved across all of its supported sites, if enabled it could save the same initial alt text value across all sites."|t("aialttext"),
0 commit comments