Files
CheapRetouch/specs/13-export-view.md
jared 1049057d7d Add Ralph Wiggum agent setup and project specifications
- Add project constitution with vision, principles, and autonomy settings
- Add 15 feature specifications covering full app scope
- Configure agent entry points (AGENTS.md, CLAUDE.md)
- Add build prompt and speckit command for spec creation
- Include comprehensive .gitignore for iOS development

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 23:19:41 -05:00

1.2 KiB

Export View

Description

Export edited photos at full resolution to Photo Library or Files.

Acceptance Criteria

  • Export button in editor triggers export flow
  • Full resolution render from operation stack
  • Progress indicator during export rendering
  • Export options:
    • Save to Photo Library (requests write permission)
    • Share sheet (AirDrop, Messages, etc.)
    • Save to Files
  • Export formats: JPEG (quality slider 0.7-1.0), PNG
  • HEIC output supported on compatible devices
  • Metadata preserved from original where possible
  • Success confirmation after save
  • Export time within spec targets:
    • 12MP: < 4 seconds
    • 48MP: < 12 seconds
  • Memory management: tile-based for large images

Technical Notes

  • Request PHPhotoLibrary.authorizationStatus(for: .addOnly) for write
  • Use PHAssetChangeRequest.creationRequestForAsset to save
  • For share sheet, create temporary file, clean up after
  • Consider background processing for very large exports

Edge Cases

  • Export during low memory: show "Image too large, try cropping" error
  • Permission denied: show guidance to enable in Settings
  • Export cancelled mid-process: clean up partial work
  • Disk space insufficient: detect and show appropriate error