Skip to content

Commit ba67768

Browse files
imorlandclaude
andauthored
docs: document WebP avatar conversion and animated GIF support in 2.0 changes (#508)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3b2e7d3 commit ba67768

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/extend/update-2_0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,7 @@ Checkout this example from the mentions extension:
423423
#### <span class="notable">Notable</span>
424424
* The `Frontend` extender now allows passing extra attributes and classes that will be added to the root `html` tag, through the `extraDocumentAttributes` and `extraDocumentClasses` methods.
425425
* When preparing data in tests, you should use the model class name instead of the table name, this will ensure the factory of the model is used and basic data is autofilled for you.
426+
* Avatar upload processing has been improved: static images (JPEG, PNG, BMP, WebP) are now converted to **WebP** (previously PNG), and animated GIFs are now preserved as `.gif` rather than being flattened. Extensions that read `avatar_url` and assume a `.png` extension should be updated to handle `.webp` as well. A new CLI command `php flarum avatars:convert-to-webp` is available to batch-convert any existing avatars. WebP is also now accepted as a valid upload format.
426427

427428
## Infrastructure
428429

0 commit comments

Comments
 (0)