Skip to content

Conversation

@Ovgodd
Copy link
Collaborator

@Ovgodd Ovgodd commented Oct 28, 2025

Purpose

Fix a bug causing images to overflow page width during DOCX export.

issue 1505

DocxImage

Proposal

  • Calculate a final width capped at 600px using Math.min(previewWidth || width, MAX_WIDTH)
  • Ensure proportional height scaling
  • Prevent images from exceeding the page width when no preview width is defined

@Ovgodd Ovgodd requested a review from AntoLC October 28, 2025 12:08
@Ovgodd Ovgodd self-assigned this Oct 28, 2025
@Ovgodd Ovgodd added bug Something isn't working triage labels Oct 28, 2025
@Ovgodd Ovgodd changed the title ✨(docx) fix image overflow by limiting width to 600px during export 🐛(docx) fix image overflow by limiting width to 600px during export Oct 28, 2025
ensures all images keep proportions and stay within page bounds in docx export

Signed-off-by: Cyril <c.gromoff@gmail.com>
@Ovgodd Ovgodd force-pushed the fix/1505-image-size-docx-export branch from ecf294d to 9bf2cf8 Compare October 28, 2025 12:09
@Ovgodd Ovgodd marked this pull request as ready for review October 28, 2025 12:11
@github-actions
Copy link

github-actions bot commented Oct 28, 2025

Size Change: -5 B (0%)

Total Size: 3.68 MB

Filename Size Change
apps/impress/out/_next/static/71cba8fe/_buildManifest.js 0 B -878 B (removed) 🏆
apps/impress/out/_next/static/a4c13f49/_buildManifest.js 878 B +878 B (new file) 🆕

compressed-size-action

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

Labels

bug Something isn't working triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants