Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.58k stars 797 forks source link

Jetpack AI: featured image generation may fail when the post content has custom HTML instead of blocks #38973

Open lhkowalski opened 3 weeks ago

lhkowalski commented 3 weeks ago

This was reported by an user:

My post had no text content blocks, just a title and custom HTML code. When I try to generate a featured image with AI, with or without text in the dialogue prompt, I get this error message: An error occurred while generating the image. Please, try again!

retnonindya commented 2 weeks ago

📌 REPRODUCTION RESULTS I'm uncertain on this. I can't replicate the issue, but it might be due to the HTML code I added. For the record, the Custom HTML Block on my test site is a really simple code:

<h2>HTML Buttons</h2>
<p>HTML buttons are defined with the button tag:</p>

<button>Click me</button>

Keeping this open since the issue is already assigned to Jetpack AI Board :)

📌 FINDINGS/SCREENSHOTS/VIDEO I was able to have a featured image with a title and Custom HTML Block:

Screenshot 2024-08-28 at 3 49 22 PM

📌 ACTIONS