◉RORK LABJP
●GPT-6.1 SOL — Added to Rork's model menu (09-29) with Low, Medium and High effort; included on Pro and Max●SONNET 5.5 — Claude Sonnet 5.5 is selectable: strong at UI design and faster than Sonnet 5 (09-28)●SDK 58 — Expo SDK 58 is out of beta as of 10/15 (beta since 09/15). Check your dependencies before upgrading●WIDGET — A write-up traces an iOS widget that renders black only in production builds●OBSERVE — EAS Observe now records native crashes too (SDK 57.0.21 or later, 10/07)●NEW — My App Open Ad Only Showed When the App…●GPT-6.1 SOL — Added to Rork's model menu (09-29) with Low, Medium and High effort; included on Pro and Max●SONNET 5.5 — Claude Sonnet 5.5 is selectable: strong at UI design and faster than Sonnet 5 (09-28)●SDK 58 — Expo SDK 58 is out of beta as of 10/15 (beta since 09/15). Check your dependencies before upgrading●WIDGET — A write-up traces an iOS widget that renders black only in production builds●OBSERVE — EAS Observe now records native crashes too (SDK 57.0.21 or later, 10/07)●NEW — My App Open Ad Only Showed When the App…
Articles/Dev Tools
⬡ Dev Tools/2026-07-15Advanced

Half the Bytes, the Same Wait: What AVIF Actually Cost My Wallpaper Apps

Switching to AVIF cut my transfer bill in half and did nothing for perceived speed. Here is the transfer-versus-decode breakdown, the Accept-negotiation trade-off, per-device fallback tiers, and the staged migration order that finally worked across six apps.

Rork587Expo219image formatsAVIFCDN

✦ Premium Article

The R2 bill said AVIF would halve my costs

I run six wallpaper apps as an indie developer. The images do not ship inside the binary — they come from Cloudflare R2 on demand. One month the transfer line item came in higher than I had planned for, and nine tenths of it was thumbnails and full-size images.

AVIF halves your bytes at the same visual quality. That claim is everywhere, and in my case it held up. I re-encoded 400 wallpapers at 2,796×1,290 from JPEG quality 82 to AVIF quality 50, and 1.41 GB became 0.68 GB. A 52% reduction.

Then I shipped it to real devices and scrolled the gallery. Nothing felt faster. On a Pixel 4a it felt distinctly worse.

I had been staring at a single number — bytes transferred — and assuming that shrinking it would shrink the wait. It does not, and the reason turned out to be worth writing down.

Perceived speed is transfer plus decode

An image reaches the screen through at least three stages: pulling it over the network, unpacking the compression into a bitmap, and drawing it. Change the format and the first stage shrinks while the second one grows.

onLoadStart and onLoad from expo-image collapse all three into one number, so I had to split them apart. Transfer time comes from R2 logs; decode time is the gap between the bytes arriving and the bitmap being ready on device.

Here are the medians from 20 representative images, three runs each, over Wi-Fi measured at 92 Mbps.

FormatAvg sizeTransferDecodeTotal
JPEG q823.6 MB312 ms48 ms360 ms
WebP q802.4 MB208 ms71 ms279 ms
AVIF q501.7 MB147 ms194 ms341 ms

AVIF saved 165 ms on the wire and handed back 146 ms at the decoder. Net gain: 19 ms. My bill dropped by half; my readers waited exactly as long as before.

The faster the connection, the worse this trade looks. Repeating the measurement throttled to 14 Mbps flipped it — AVIF totalled 1,340 ms against JPEG's 2,105 ms, a clear win. Format rankings invert depending on the device and the network. Pick one based on a single average and you are quietly taxing one half of your audience to pay for the other.

On older hardware, decode hurts twice

The Pixel 4a decoded AVIF in roughly 380 ms per image, about 1.9× the 194 ms I measured on an iPhone 15 Pro. Hardware without an AVIF decoder falls back to the CPU.

During a scroll, several images decode at once, so a slow decoder does not just delay one tile — it drags the UI thread with it. Frame drops on the Pixel 4a went from 3.1% to 11.7% after the AVIF rollout. I had made the experience worse in exchange for a cheaper invoice.

The memory side does not improve either. A decoded bitmap is the same size regardless of the source format, which is the same wall I described in the wallpaper cache memory bloat notes. Changing formats reclaims zero bytes of RAM.

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦Why a 52% drop in transfer bytes produced only a 19ms improvement, shown with the transfer and decode times measured separately
✦Accept negotiation versus a manifest with per-format URLs, compared on CDN hit rate, rollback cost, and what each can express
✦Device-tier fallback logic and the 5-step migration order that cut transfer 38% without regressing frame drops on older hardware
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⬡ Dev Tools2026-10-15
When EXPO_PUBLIC_ Values Read Fine in Dev but Come Back undefined in Production: Telling the Spellings Apart
The API URL reads fine while developing and turns undefined once the app is built. The cause was how process.env was written. I lined up babel-preset-expo's output for dev and production and tabulated which spellings get replaced and which are left behind.
⬡ Dev Tools2026-10-13
Before You Ship: Go Looking for Your Own Keys Inside the Exported Expo Bundle
A key can be missing from your source and still be sitting inside the finished app. I ran expo export on Expo SDK 57, searched the bundle with grep and a short Node script, and recorded which secrets show up and which don't.
⬡ Dev Tools2026-10-07
Japanese Headings Won't Turn Bold on Android: How to Trace and Fix a fontWeight That Does Nothing
A troubleshooting note for Rork apps where headings look bold on iPhone but stay thin on Android. How to tell the symptoms apart, pick weights through fontFamily, and verify the fix.