FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Building a Browser-Side Image Converter: No Server, No Upload, No AI
How-ToWeb Development

Building a Browser-Side Image Converter: No Server, No Upload, No AI

via Dev.to Webdevcai13808519901-cpu1mo ago

I needed to convert some portrait screenshots to landscape for a LinkedIn carousel. Simple task, right? Every tool I found wanted me to upload my images to their server. One added watermarks. Another required an account. The "free" one had a 3-per-day limit. And they were all slow because of the server round-trip. I kept thinking: this is a geometry problem . Why does my image need to leave my browser? The Canvas API Is All You Need Modern browsers ship with the Canvas API , which can handle image manipulation natively. No server required. Here's the core idea: const canvas = document . createElement ( ' canvas ' ); const ctx = canvas . getContext ( ' 2d ' ); // Set target dimensions (e.g., 16:9) canvas . width = targetWidth ; canvas . height = targetHeight ; // Draw blurred background ctx . filter = ' blur(20px) ' ; ctx . drawImage ( img , 0 , 0 , canvas . width , canvas . height ); ctx . filter = ' none ' ; // Draw original image centered const scale = Math . min ( canvas . width / i

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
20 views

Related Articles

Learning a Recurrent Visual Representation for Image Caption Generation
How-To

Learning a Recurrent Visual Representation for Image Caption Generation

Dev.to • 1d ago

How-To

# 5 JSON Mistakes Developers Make (And How to Fix Them Fast)

Medium Programming • 1d ago

10 subtle go mistakes that only show up in production
How-To

10 subtle go mistakes that only show up in production

Medium Programming • 1d ago

Stop Configuring Third-Party Libraries by Hand — Let Your Agent Handle It!
How-To

Stop Configuring Third-Party Libraries by Hand — Let Your Agent Handle It!

Medium Programming • 1d ago

How-To

How I Stay Consistent While Learning Coding

Medium Programming • 1d ago

Discover More Articles