• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Shaban111

Shaban111

T

Public
Like
T
Home
Code
3
backend
1
frontend
3
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/24/2025
Viewing readonly version of main branch: v15
View latest version
README.md

WhatsApp Profile Picture Resizer

A simple web app that automatically crops any photo to fit perfectly in a 1:1 square canvas. Perfect for creating WhatsApp profile pictures.

Features

  • Upload any photo (horizontal or vertical)
  • Automatically crops and scales to fill a 640x640 square canvas
  • No background visible - your full photo fills the entire square
  • Smart cropping that preserves the center of your image
  • Mobile-friendly interface
  • Download or share the resized image
  • Preview before processing

Usage

  1. Click "Choose Photo" to select an image
  2. Preview your selected image
  3. Click "Crop to Square for WhatsApp" to process
  4. Download or share the final square image

How it Works

The app uses smart cropping to ensure your photo fills the entire 640x640 square:

  • Portrait photos: Crops top and bottom edges, keeps the center
  • Landscape photos: Crops left and right edges, keeps the center
  • Square photos: Scales to fit perfectly
  • No black or white backgrounds - just your photo!

Technical Details

  • Frontend: React with TypeScript
  • Canvas API for image processing and smart cropping
  • Responsive design with TailwindCSS
  • Works on mobile and desktop
  • Client-side processing (no server upload required)
  • JPEG output for better compatibility and smaller file sizes

Project Structure

├── frontend/
│   ├── index.html          # Main HTML template
│   ├── index.tsx           # React app entry point
│   └── components/
│       └── App.tsx         # Main app component
├── backend/
│   └── index.ts            # Static file server
└── README.md
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.