Simpanan

Documentation

Everything you need to use Simpanan: link format, image options, code examples, caching and limits.

Updated 2026-09-26

Every file you upload has a permanent link following this pattern:

https://cdn.simpananawan.com/u/<username>/<folder>/<file-name>

For example https://cdn.simpananawan.com/u/your-shop/products/shoe.jpg. File names with spaces or special characters are URL-encoded (a space becomes %20). The Copy link button in the library does this for you.

Image options

Insert /tr: followed by options, separated by commas, right after the domain. Alternatively, add ?tr= to the end of the link.

https://cdn.simpananawan.com/tr:w-600,h-400,f-auto/u/your-shop/products/shoe.jpg
https://cdn.simpananawan.com/u/your-shop/products/shoe.jpg?tr=w-600,h-400,f-auto
OptionValuesWhat it does
w1 – 5000Width in pixels.
h1 – 5000Height in pixels.
cmaintain_ratio, at_max, at_least, pad_resize, forceHow the image fits when width and height are both set. Default maintain_ratio (fill the box, crop from the centre).
fauto, webp, avif, jpg, pngOutput format. auto picks AVIF or WebP for the browser.
q1 – 100Quality. Default 80.
bl1 – 100Blur.
rtdegreesRotate clockwise.
origtrueSend the original file, ignoring other options.

Each crop mode is explained on resize images with a URL, and how f-auto works on automatic WebP and AVIF.

Examples

An img tag with a fixed size

<img src="https://cdn.simpananawan.com/tr:w-400,h-400,f-auto/u/your-shop/products/shoe.jpg"
     width="400" height="400" alt="Blue running shoe" loading="lazy">

A responsive image with srcset

<img src="https://cdn.simpananawan.com/tr:w-800,f-auto/u/your-shop/banner.jpg"
     srcset="https://cdn.simpananawan.com/tr:w-480,f-auto/u/your-shop/banner.jpg 480w,
             https://cdn.simpananawan.com/tr:w-800,f-auto/u/your-shop/banner.jpg 800w,
             https://cdn.simpananawan.com/tr:w-1600,f-auto/u/your-shop/banner.jpg 1600w"
     sizes="100vw" width="1600" height="600" alt="Year-end sale">

A CSS background

.hero {
  background-image: url("https://cdn.simpananawan.com/tr:w-1600,f-auto/u/your-shop/background.jpg");
  background-size: cover;
}

Video

<video controls preload="metadata"
       poster="https://cdn.simpananawan.com/tr:w-1280,f-auto/u/your-shop/cover.jpg"
       src="https://cdn.simpananawan.com/u/your-shop/intro.mp4"></video>

WordPress

  1. Copy an image link from your Simpanan library and add options, for example /tr:w-1200,f-auto.
  2. In the WordPress editor, add an Image block and choose Insert from URL.
  3. Paste the link and fill in the alt text.

These images don't fill up the WordPress media library or your hosting, because they're delivered straight from Simpanan.

Uploading and managing files

  • Open the library, then drag files or folders onto the page, or use the New menu.
  • Files can be up to 500 MB each. Every file type is accepted.
  • Uploading a file with the same name in the same folder replaces the old one. Its link doesn't change.
  • Deleting a file makes its link stop working. Make sure your website no longer uses it.

Caching

  • Each combination of options is made once, then kept in Simpanan's cache. Later requests come straight from the cache.
  • Visitors' browsers keep files for one day.
  • When you replace a file, new transformed versions are made automatically. Visitors whose browser still has the old version see the new one within a day. For an immediate change, use a new file name.
  • f-auto results are cached only in the visitor's browser (not in shared caches), because one link can produce different formats for different browsers.

Limits

WhatLimit
File size500 MB per file
Output width and heightUp to 5000 pixels
Images that can be transformedJPG, PNG, WebP, AVIF, still GIF, BMP, up to 40 megapixels
Animated GIFDelivered at original size, keeps playing
SVG and other filesDelivered as they are
VideoDelivered as uploaded, with byte ranges (seeking), no transcoding