Digital asset management library
Project description
Multimedia Advanced Digital Asset Management
MADAM is a digital asset management library. It aims to facilitate the handling of image, audio, and video files by helping out with several tasks, like storing, organizing, and transforming asset data.
Usage
Reading a JPEG image and extracting metadata:
>>> with open('path/to/file.jpg', 'rb') as file:
... asset = madam.read(file)
>>> asset.mime_type
'image/jpeg'
Changing the size of an image asset:
>>> asset.width
800
>>> asset.height
600
>>> make_thumbnail = pillow_processor.resize(width=100, height=100)
>>> resized_asset = make_thumbnail(asset)
>>> resized_asset.width
100
>>> resized_asset.height
100
Converting an image to a different file format and saving it to a file:
>>> convert_to_png = pillow_processor.convert(mime_type='image/png')
>>> png_asset = convert_to_png(asset)
>>> with open('path/to/file.png', 'wb') as file:
... madam.write(png_asset, file)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
MADAM-0.1-py3-none-any.whl
(11.6 kB
view hashes)