ImageField uploads
Request right-sized variants from public media URLs without creating new thumbnail records first.
Keep originals in Django media storage, S3, a CMS, or your current public origin. Django templates can request Skymage URLs for exact dimensions, stable crops, WebP or AVIF output, and cached delivery.
# templatetags/skymage.py
from urllib.parse import urlencode
from django import template
register = template.Library()
@register.simple_tag
def skymage_url(source, **params):
query = urlencode(params)
return f"https://demo.skymage.net/v1/{source}{'?' + query if query else ''}"
{% skymage_url product.image.url w=520 h=390 fit="cover" f="webp" q=82 as product_image %}
<img src="{{ product_image }}" width="520" height="390" loading="lazy" alt="{{ product.name }}">
A useful Django image optimization test starts with one public route, one repeated template tag or include, and a measurable surface such as product cards, avatars, gallery images, or CMS media.
Request right-sized variants from public media URLs without creating new thumbnail records first.
Serve card, gallery, and detail images with explicit width, crop, format, and quality settings.
Normalize avatars, screenshots, logos, and user uploads into predictable template sizes.
A template tag or helper can centralize the Skymage prefix while each template asks for the dimensions it actually renders.
{% load skymage %}
{% skymage_url article.hero.url w=1280 h=720 fit="cover" f="avif" q=84 as hero_image %}
<img src="{{ hero_image }}" width="1280" height="720" alt="{{ article.title }}">
{% for item in products %}
{% skymage_url item.image.url w=520 h=390 fit="cover" f="webp" q=82 as card_image %}
<img src="{{ card_image }}" width="520" height="390" loading="lazy" alt="{{ item.name }}">
{% endfor %}
Can Skymage transform the public media URLs your Django app already renders?
Can each repeated include request the exact dimensions it displays?
Can routes ship WebP or AVIF without changing uploads or background jobs?
Can one template tag prove the pattern before changing every image view?
Send one public Django route. The free audit will identify the repeated image surface to test first, the Skymage URL parameters to try, and whether the current media origin supports a low-risk rollout.
Create a Skymage CDN URL, prepend it to your existing image URLs, and let the edge handle optimization, transforms, and delivery.
No credit card required. 14-day free trial.