• Townie
    AI
  • 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
/
Code
/
Search
index.ts
https://Shaban111--9ae2e42638c511f0959b9e149126039e.web.val.run
README.md

WhatsApp Profile Picture Resizer

A simple web app that resizes any photo to fit perfectly in a 640x640 square canvas while preserving the original image proportions. Perfect for creating WhatsApp profile pictures.

Features

  • Upload any photo (horizontal or vertical)
  • Automatically resizes and scales to fit within a 640x640 square canvas
  • Preserves original image proportions - no cropping!
  • White background fills any empty space
  • 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 "Resize to Square for WhatsApp" to process
  4. Download or share the final square image

How it Works

The app uses smart scaling to ensure your photo fits entirely within the 640x640 square:

  • Portrait photos: Scales down to fit height, adds white background on sides
  • Landscape photos: Scales down to fit width, adds white background on top/bottom
  • Square photos: Scales to fit perfectly
  • No cropping - your entire photo is preserved!

Technical Details

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

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
HTTP
  • index.ts
    Shaban111--9a…9e.web.val.run
Code
backendfrontendREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.