Skip to content

Insert, move and resize images in a PDF - #88

Merged
mberman84 merged 3 commits into
mainfrom
codex/insert-images-in-edit-mode
Nov 11, 2026
Merged

mberman84 merged 3 commits into
mainfrom
codex/insert-images-in-edit-mode

Conversation

@mberman84

Copy link
Copy Markdown
Collaborator

Problem

Edit mode lets readers replace an existing image. Adding a photo or diagram to a page required another PDF editor.

Change

Choose Insert image or paste a PNG or JPEG in Edit mode. Drag the image into place and resize it from any corner. Choose Place image to keep editing or Save copy to save immediately. The saved PDF preserves PNG transparency and camera JPEG orientation.

Issue or approval

Closes #48. Maintainer approval.

How I checked it

On macOS, TypeScript, the production build, all 259 unit tests, and the full hidden Electron smoke suite passed. The new cross-platform smoke test edits text, inserts a JPEG, and pastes a transparent PNG on a rotated, cropped page. It independently renders the saved PDF, checks both images against their on-screen positions and sizes, verifies transparency and orientation, and reopens the copy in Folio.

Before

Edit mode before image insertion

After

A selected image on the page with four resize handles

Implemented and tested by GPT-6 in OpenAI Codex.

@mberman84
mberman84 merged commit 264e193 into main Nov 11, 2026
3 checks passed
@mberman84
mberman84 deleted the codex/insert-images-in-edit-mode branch November 11, 2026 05:33
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.

In edit mode add the possibility to add images (png, jpeg)

1 participant