Skip to main content

high-performance media processing engine for on-the-fly image transformations and storage.

Project description

morphosx banner

morphosx 🧬

High performance, low footprint.
Self-hosted, open-source media engine for on-the-fly image processing and delivery.

morphosx is a high-speed, minimal cloud storage and media manipulation server. It converts almost any media type into a optimized, web-ready image derivative on-the-fly.


⚡ Core Features

  • User-Bound Security: Protected assets and HMAC signatures tied to specific JWT-authenticated users.
  • Private Folders: Secure per-user storage using the users/{user_id}/ path convention.
  • Universal Rendering: Support for BIM (IFC), 3D (STL/OBJ/GLB), Office, Font Specimen, Archives, Video, Audio and RAW.
  • Modern Engines: Choice between Pillow and PyVips (ultra-fast).
  • Cloud Ready: Pluggable storage system (Local & Amazon S3).

🚀 Installation & Deployment

1. Using Docker (Recommended)

The easiest way to run Morphosx with all features and system dependencies pre-installed.

docker run -p 8000:8000 --env-file .env ghcr.io/dcdavidev/morphosx:latest

2. Using pip (from PyPI)

You can install Morphosx as a library or a standalone CLI tool.

# Core installation (standard images only)
pip install morphosx

# Full installation (all media types support)
pip install "morphosx[full]"

# Selective installation
pip install "morphosx[video,pdf,3d]"

Note: Some extras require system libraries (e.g., ffmpeg for video, libvips for vips engine).


📖 Usage Guide

Start the Server

If installed via pip, you can use the global command:

morphosx start --port 8000 --reload

1. Uploading Assets

Public Upload

curl -X POST "http://localhost:8000/v1/assets/upload?folder=news" -F "file=@img.jpg"

Private Upload

curl -X POST "http://localhost:8000/v1/assets/upload?private=true" \
     -H "Authorization: Bearer <TOKEN>" -F "file=@secret.pdf"

2. Listing Files

GET /v1/assets/list/originals/news

✨ Smart Presets

Use predefined aliases in settings.py for cleaner URLs:

  • preset=thumb: 150x150 WebP.
  • preset=hero: 1920px WebP.
  • preset=social: 1200x630 JPEG.

🛡️ Advanced Security

Morphosx uses HMAC-SHA256 to prevent DoS attacks. The signature payload includes: asset_id | width | height | format | quality | preset | user_id.


🧪 Supported Media Table

Category Extra Extensions Output Type
BIM [bim] ifc Technical Project Card
3D [3d] stl, obj, glb, gltf Technical Blueprint
Images Core jpg, png, webp Processed Image
Modern Img [modern] heic, avif Processed Image
RAW [raw] cr2, nef, dng, arw Developed Image
Video [video] mp4, mov, webm, avi Frame @ timestamp
Audio [video] mp3, wav, ogg, flac Waveform Image
Docs [pdf] pdf Page Render
Office [office] docx, pptx, xlsx Summary Card
Text Core json, xml, md, txt Syntax-highlighted
Typography Core ttf, otf Font Specimen
Archives Core zip, tar Content List

📜 License

MIT - Built for the Open Source community.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

morphosx-0.4.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

morphosx-0.4.0-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file morphosx-0.4.0.tar.gz.

File metadata

  • Download URL: morphosx-0.4.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for morphosx-0.4.0.tar.gz
Algorithm Hash digest
SHA256 e2d3d8d35d7d35a56cab815d546e51944149aae84f5ad9cd3914f38a930ed65f
MD5 12d380da1259df4303a8101174a55728
BLAKE2b-256 45a7c00c1795bdb01f871b1234238eb1b89eaf82cf29d762205721f5062ae7f8

See more details on using hashes here.

File details

Details for the file morphosx-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: morphosx-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 31.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for morphosx-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8761843c81f8ce111fb83d79e859cf57a49f330b0e8f30f6699caf9d2fbe3da3
MD5 ca6c693731c09dfe0013722b87f9e0d2
BLAKE2b-256 9ef71bd3f76a737b4684d0b12349d65e93f8bdc9174245cfad0e5c3cdef5af35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page