Skip to content

Task/FOUR-33042: Convert base64 images used in html viewers into media on screens - #9030

Open
agustinbusso wants to merge 2 commits into
developfrom
task/FOUR-33042
Open

Task/FOUR-33042: Convert base64 images used in html viewers into media on screens#9030
agustinbusso wants to merge 2 commits into
developfrom
task/FOUR-33042

Conversation

@agustinbusso

@agustinbusso agustinbusso commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Description

Adds a screen inline-image normalizer that converts base64 data URLs in HTML content into Spatie media, deduplicates repeated images by content hash, and stores the normalized config after saves and draft updates. Includes a console command for scanning and dry-run cleanup, plus front-end handling to sync the updated config and surface a success notice after save.

How to use command
To replace base64 images inside form_html_viewer control of already existing screens, you can use the following command:

Dry run mode (will detect base 64 images, but not convert them into media)

php artisan processmaker:normalize-screen-inline-images --dry-run

Dry run mode for a specific screen:

php artisan processmaker:normalize-screen-inline-images --dry-run --screen=123

Execute conversion from base64 to media:

php artisan processmaker:normalize-screen-inline-images

Related Tickets and PRs

https://processmaker.atlassian.net/browse/FOUR-33042

Adds a screen inline-image normalizer that converts base64 data URLs in HTML content into Spatie media, deduplicates repeated images by content hash, and stores the normalized config after saves and draft updates. Includes a console command for scanning and dry-run cleanup, plus front-end handling to sync the updated config and surface a success notice after save.
@decisions-sonarqube

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant