EasyShip Blog

Updates, guides and notes about EasyShip placeholder service.

Embed examples and integration tips

Small examples to help you embed EasyShip placeholders into common stacks.

HTML / plain

<img src="https://easyship.dev/image/300x200?text=Profile" alt="profile">

JavaScript (fetch)

fetch('/image/400x300?text=Demo').then(r=>r.blob()).then(b=>{ document.getElementById('img').src = URL.createObjectURL(b); });

React

<img src={`https://easyship.dev/image/${width}x${height}?text=${label}`} />

Testing tips

  • Use placeholder images in visual regression tests to avoid flaky external assets.
  • Seed consistent text or ids in CSV fixtures so tests are deterministic.

Back to blog