Skip to content

Conversation

@devints47
Copy link
Owner

Major refactor of how we handle the CLI with socials, added more platform support, fixed CLI -> image count disparity, updated README to reflect changes

This PR covers issues #14, #18, #25, partial coverage of #29, and #32

Overview

Refactored Pixel Forge to focus on OpenGraph website sharing. Fixed broken CLI platform flags, added 6 new platforms, and simplified generators to produce 1-2 images per platform instead of multiple content formats.

Key Changes

Architecture:

  • Created BaseOpenGraphGenerator for consistent platform generation
  • Focused all generators on OpenGraph (removed Stories, Reels, vertical videos)
  • Standardized 1200x630 format across social platforms

Platform Support:

  • Added Discord, Telegram, Signal, Slack, Threads, Snapchat generators
  • Fixed broken individual platform flags (--discord, --telegram, etc.)
  • Enhanced --social flag: 11 platforms, 14 files

CLI Fixes:

  • Removed "My App" text overlay on generated images
  • Fixed TypeScript conflicts in TwitterGenerator
  • All platform flags now functional

Documentation:

  • Reorganized README with flag-based platform matrices
  • Updated examples to match actual output

Breaking Changes

Platform Before After
Instagram 5 files (Square, Portrait, Stories, Reels, Landscape) 1 file (instagram.png)
TikTok 2 files (Vertical + Profile) 1 file (tiktok.png)
Snapchat 1 file (1920x1080) 1 file (snapchat.png 1200x630)

New generators: Discord, Telegram, Signal, Slack, Threads, Snapchat - all generate single 1200x630 OpenGraph images.

Files Changed

New (10): Base architecture + 6 platform generators + 3 format generators
Modified (6): CLI, Instagram/TikTok/Twitter generators, comprehensive generator, exports, README

Testing

npx pixel-forge generate logo.png --social     # 14 files, 11 platforms ✓
npx pixel-forge generate logo.png --discord    # 1 file ✓
npx pixel-forge generate logo.png --instagram  # 1 file ✓

Impact

Production-ready OpenGraph generator with 11 working platforms, consistent output, and extensible architecture for future platforms.

@devints47 devints47 added this to the Hackathon time milestone Aug 26, 2025
@devints47 devints47 self-assigned this Aug 26, 2025
@devints47 devints47 added documentation Improvements or additions to documentation enhancement New feature or request labels Aug 26, 2025
@devints47 devints47 merged commit dbce311 into main Aug 26, 2025
8 checks passed
@devints47 devints47 deleted the 14-certain-images-get-generated-with-my-app-text-in-the-middle-of-the-page branch August 26, 2025 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request refactor

Projects

None yet

2 participants