Repository navigation
Add per-photo adjustments to Automate Framing - #6
Merged
EruzaDev merged 1 commit intoSep 24, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Large original-resolution exports can create excessive temporary canvas and ImageData memory.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
What changed in this PR
Adds per-photo light, color, tone, levels, and curves adjustments to framing previews and batch ZIP exports.
Changes:
- Added adjustment processing with LUT-based operations.
- Added per-photo controls, navigation, reset, and persistence.
- Integrated adjustments into preview and export rendering.
- Documented the feature in
README.md.
| File | Summary |
|---|---|
src/utils/zipExporter.js |
Passes per-photo adjustments into exports. |
src/utils/photoAdjustments.js |
Implements adjustment defaults and pixel processing. |
src/utils/canvasRenderer.js |
Applies adjustments during rendering; large original-resolution exports may exceed browser memory limits and require bounded processing. |
src/components/FrameCompositor/PhotoAdjustmentsPanel.jsx |
Provides adjustment controls and navigation. |
src/components/FrameCompositor/FrameEditor.jsx |
Integrates adjustment state with preview and export behavior. |
README.md |
Documents per-photo adjustments. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+169
to
+175
| const photoCanvas = document.createElement('canvas'); | ||
| photoCanvas.width = Math.max(1, Math.round(validCropArea.width * Math.hypot(transform.a, transform.b))); | ||
| photoCanvas.height = Math.max(1, Math.round(validCropArea.height * Math.hypot(transform.c, transform.d))); | ||
| const photoCtx = photoCanvas.getContext('2d', { willReadFrequently: true }); | ||
| drawCoverImage(photoCtx, docImage, 0, 0, photoCanvas.width, photoCanvas.height, docAlignment); | ||
| const pixels = photoCtx.getImageData(0, 0, photoCanvas.width, photoCanvas.height); | ||
| photoCtx.putImageData(applyPhotoAdjustments(pixels, photoAdjustments), 0, 0); |
EruzaDev
deleted the
4-add-image-adjustment-or-color-and-tone-correction-feature
branch
September 27, 2026 12:50
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Checks
npm run buildnpx oxlint src/components/FrameCompositor/PhotoAdjustmentsPanel.jsx