Skip to content

#33 feat: add custom export dimensions#50

Open
ikorich wants to merge 1 commit intodevelopfrom
feature/33-custom-dimensions
Open

#33 feat: add custom export dimensions#50
ikorich wants to merge 1 commit intodevelopfrom
feature/33-custom-dimensions

Conversation

@ikorich
Copy link
Member

@ikorich ikorich commented Jan 31, 2026

Motivation

Users may need specific dimensions for presentations or documentation.

Changes

  • Add custom dimensions toggle ("Size" checkbox) in export section
  • Add width/height input fields with 100-4096px validation range
  • Add aspect ratio lock button that maintains ratio when dimensions change
  • Add scaleImageToCustomSize() function to fit content within custom dimensions
  • Content is scaled down to fit (never scaled up) and centered with transparent background

Notes

  • When enabled, exports are scaled to fit the specified dimensions
  • Aspect ratio lock updates the ratio when toggled on based on current dimensions
  • Settings are persisted via AppStorage

- Add useCustomDimensions, customExportWidth, customExportHeight, lockAspectRatio AppStorage
- Add custom dimensions toggle and fields in export section
- Add aspect ratio lock button that maintains ratio when editing dimensions
- Add scaleImageToCustomSize function to fit content within custom dimensions
- Dimensions validation with 100-4096px range
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.

1 participant