Skip to content

#30 feat: add social media export presets#47

Open
ikorich wants to merge 1 commit intodevelopfrom
feature/30-social-presets
Open

#30 feat: add social media export presets#47
ikorich wants to merge 1 commit intodevelopfrom
feature/30-social-presets

Conversation

@ikorich
Copy link
Member

@ikorich ikorich commented Jan 31, 2026

Motivation

Users want to export images sized for specific social media platforms (Twitter, LinkedIn, Slack) without manual resizing.

Changes

  • Add ExportPreset enum with twitter (1200x675), linkedin (1200x627), slack (800x600) dimensions
  • Add export preset picker in toolbar with Auto, Twitter, LinkedIn, Slack options
  • Add scaleImageToPreset() function to scale exported images to fit preset dimensions
  • Maintain aspect ratio and center content within preset canvas

Notes

  • Auto mode preserves existing content-based sizing behavior
  • Preset scaling only scales down (never up) to maintain quality
  • Content is centered with transparent background when smaller than preset

- Add ExportPreset enum with twitter, linkedin, slack presets
- Add preset picker in toolbar export section
- Scale exported images to fit preset dimensions
- Maintain aspect ratio and center content in preset canvas
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