🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 4 Min Lesezeit
0

I got tired of uploading my HEIC photos to random servers, so I built a WASM-powered client-side converter

↗ Quelle (dev.to)
🗣️ Stimme:

Hi Dev.to! 👋



Picture this: You are in the middle of a development sprint, a client sends you a batch of assets they took on their iPhone, and you drag them into your project folder.



Suddenly, your build fails. Your browser won't render them. Figma is throwing errors.



They are .heic files.



Apple’s High-Efficiency Image Container (HEIC) is a marvel of compression engineering, saving gigabytes of storage on our phones. But outside the Apple ecosystem? It is an absolute nightmare for web developers and designers.



The architectural sin of most online converters

If you Google "convert HEIC," you are hit with a wall of ad-heavy, SEO-farmed websites. As a developer, using these tools always frustrated me because the underlying architecture makes no sense:



The Privacy Risk: You are taking personal photos, ID cards, or sensitive documents and uploading them to an unknown remote server.




  1. The Bandwidth Tax: Why am I sending a 5MB payload over the network, waiting in a server queue, and downloading it again, just to change a file extension?


  2. The Artificial Limits: "You have reached your limit of 3 free conversions."


  3. Processing an image shouldn't require an HTTP request. Modern browsers have plenty of computing power to handle this locally. So, I decided to build a purely "dev-native" solution.




🚀 Enter HEIC Tools: 100% Local, Zero Uploads

I built a suite of utilities where the conversion engine runs entirely inside your browser's memory.



By offloading the heavy lifting to your local CPU, the files never leave your machine. You could literally load the page, disconnect your Wi-Fi, and it would still process your files perfectly.



Because different workflows require different outputs, I split the engine into three optimized pipelines:




  • For Web & CMS: When you need maximum compatibility and lightweight assets for a website, run them through the converter.


  • For Document Archiving: If you scanned contracts, whiteboards, or invoices with your iPhone, you don't want scattered image files. You can stitch those frames together into a single, clean document using the HEIC to PDF compiler.




🛠 Under the Hood: WebAssembly & Web Workers

Building this was a fantastic exercise in browser performance management.



To decode Apple's proprietary format in the browser, I utilized WebAssembly (WASM) via the open-source libheif-js module. But if you run a heavy WASM decoding task on the main JavaScript thread, the entire browser UI will freeze.



To solve this, the binary data is passed to a Web Worker, which churns through the decoding in the background.



The tricky part? HEIC isn't just an image; it's a container. A single .heic file can hold multiple frames (like a burst shot, a thumbnail, or a Live Photo). If you blindly export the first frame you find, you might end up with a blurry 256x256 thumbnail.



Here is the extraction logic I wrote inside the Web Worker to dynamically hunt down the highest-resolution frame before rendering it:




CODE
// 'decodedFrames' is the array of images extracted by the WASM decoder
let primaryImage = decodedFrames[0];
let maxResolutionArea = primaryImage.get_width() * primaryImage.get_height();

// Iterate through the HEIC container to isolate the main, high-res photo
for (let i = 1; i < decodedFrames.length; i++) {
let currentArea = decodedFrames[i].get_width() * decodedFrames[i].get_height();

if (currentArea > maxResolutionArea) {
primaryImage = decodedFrames[i];
maxResolutionArea = currentArea;
}
}

// 'primaryImage' is now locked in. We draw it to an OffscreenCanvas
// and export it locally as a Blob.






💡 Why build Single-Purpose Tools?

The web is cluttered with heavy, bloated SaaS apps. I believe there is a massive space for blazing-fast, single-purpose utilities that respect user privacy and do exactly one thing perfectly.



Next time you AirDrop a batch of photos and get hit with that dreaded .heic extension, give it a spin.



I’d love to hear your feedback! Let's chat in the comments if you want to dive deeper into how I handled garbage collection for WASM arrays or managed memory spikes when batch-converting large folders. 👇

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
1 Quelle
Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
1 Quelle
Major AI platforms go down in unprecedented simultaneous outage
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I got tired of uploading my HEIC photos to random servers, so I built a WASM-powered client-side converter

Thematisch verwandte Begriffe: tired, uploading, HEIC, photos · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...