Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to Turn Vertical Photos into WhatsApp Stickers (512 512 WebP, Under 100 KB)

Every phone gallery is full of tall photos — your cat mid-yawn, a birthday cake, a friend pulling a face. WhatsApp stickers are square. That mismatch is the entire job: get a 9:16 photo onto a 512×512 canvas without losing the subject, keep the file under 100 KB, and save it as a WebP that WhatsApp will actually accept. In my last post I covered the transparent-WebP basics. This one is the…

WhatsApp only accepts square stickers that are 512x512 pixels and saved as WebP files under 100KB in size. To convert a portrait photo into a WhatsApp sticker, you must first fit the photo onto a 512x512 canvas without losing the subject and keeping the file size under 100KB. There are two options for fitting the photo: crop the photo to fill the frame while losing the top and bottom, or pad the photo, leaving transparent bands on two sides.

For photos with faces, it is recommended to pad the photo. Optional background removal can be done using the rembg library. To ensure the file size is under 100KB, you can adjust the WebP quality from 90 to 30 in increments of 10 until the desired size is achieved. The final sticker can then be imported into WhatsApp or used as a Telegram sticker, which also accepts WebP stickers up to 512KB.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Turning an Old Gaming Laptop into a Home Lab

I work in security evaluation, which mostly means looking at systems from the outside and checking whether they do what they say.

  • Author repurposes old Dell G7 7588 gaming laptop as home lab.
  • Installs Proxmox VE 9.2 hypervisor, allocates storage for guests.
  • Runs Debian 13 container as unprivileged LXC for security learning.

After every save, I refetch the page I'm on — not page one

Here's a bug I've shipped more than once: you edit a user on page 3 of an admin table, save, and the table jumps back to page 1. The edit worked.

  • Users page refetches data after each edit or delete.
  • Server data considered authoritative source.
  • Refetching ensures correct page meta and concurrent changes.

Per-User Logins and an Audit Trail in Supabase: Auth, RLS and Triggers, a Tamper Drill, and a Small Support Portal

If your team shares one login, an audit log can't tell you who did what. I wanted to see that for myself, then build the fix with Supabase Auth, RLS and database triggers, and try to break it.

  • Supabase Auth, RLS, and triggers create tamper-proof audit trail
  • Separate tables for support requests and activity log ensure accountability
  • Shared login scenario masks individual user actions in audit log

Building a photo-to-video window scene without a prompt box

I have been building a small photo-to-video product called Burger Window AI. The whole product is one scene: upload a bright, front-facing photo of a person or a pet, and it returns a vertical clip of…

  • Burger Window AI generates 12-second video clips of subjects in night window setting.
  • Users upload single photo, no prompts needed for lighting, angles, timing.
  • Clip features mid-bite freeze, direct stare, and curtain closing for short-form feeds.

Statement date vs due date: I built a tiny free planner because my own cards confused me

Most of us with two or more credit cards know the feeling: a banking app shows a "statement balance", an email mentions a "due date", and the reminder you set in your phone's calendar is three weeks…

  • Statement date marks when bank tallies charges for billing cycle
  • Due date typically 2-3 weeks after statement date
  • Tiny free planner organizes card due dates and payments

More from Friday 30 October →