pnp / pnp/powershell

Page Transformation (ConvertTo-PnPPage) – Images not added to Text web part when page is modernized

Open
#2,678 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
904
Forks
407
Avg merge
9h 16m
Merged PRs (30d)
10

Description

Images that currently exist within the content area of classic pages are being added to Modern Image web parts instead of the Text web part with the remaining page content.

Microsoft released an update within the past year that allows images to be added in the Modern Text web part.

The current functionality of the page transformation process forces all pages to be edited after the modernization if the page contains images that should reside in the text area, not in a separate web part.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the ConvertTo-PnPPage page transformation entry point and trace how images in the content area of classic pages are classified. Verify the modernized result for pages with inline images: those images should remain in the Modern Text web part with the surrounding content, while images intended as separate content should still use Modern Image web parts.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
content, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.