All Projects → jacob414 → py-rfc2397

jacob414 / py-rfc2397

Licence: other
A Python RFC2397 ("data url") implementation

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to py-rfc2397

DICOM.jl
Julia package for reading and writing DICOM (Digital Imaging and Communications in Medicine) files
Stars: ✭ 45 (+181.25%)
Mutual labels:  images
Floral
Minimal design gallery app for Android.
Stars: ✭ 23 (+43.75%)
Mutual labels:  images
hes-gallery
Light, dependency free, responsive gallery script
Stars: ✭ 27 (+68.75%)
Mutual labels:  images
osbuild
Build-Pipelines for Operating System Artifacts
Stars: ✭ 95 (+493.75%)
Mutual labels:  images
etiketai
Etiketai is an online tool designed to label images, useful for training AI models
Stars: ✭ 63 (+293.75%)
Mutual labels:  images
vite-plugin-image-presets
🖼 Image Presets for Vite.js apps
Stars: ✭ 164 (+925%)
Mutual labels:  images
instagram-get-images
Instagram get images 🌄 (hashtags, account, locations) with puppeteer
Stars: ✭ 69 (+331.25%)
Mutual labels:  images
ksoftapi.py
Official API Wrapper for KSoft.Si API
Stars: ✭ 31 (+93.75%)
Mutual labels:  images
vue-piece-slider
animated slides in a fragmented look 🐞🌳✡️📐
Stars: ✭ 95 (+493.75%)
Mutual labels:  images
mqttorg-graphics
Graphics and branding for the MQTT website
Stars: ✭ 21 (+31.25%)
Mutual labels:  images
use-images-loaded
🖼️ Returns true once all the images inside a container are loaded
Stars: ✭ 82 (+412.5%)
Mutual labels:  images
lut
color lookup tables (LUTs) for color grading
Stars: ✭ 84 (+425%)
Mutual labels:  images
image-zoom
smooth, iOS/medium.com style thumbnail viewing
Stars: ✭ 35 (+118.75%)
Mutual labels:  images
av.imageview
Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
Stars: ✭ 97 (+506.25%)
Mutual labels:  images
ImageOnMap
Repo for ImageOnMap, a bukkit plugin created to display any image using a map
Stars: ✭ 162 (+912.5%)
Mutual labels:  images
GBVS360-BMS360-ProSal
Extending existing saliency prediction models from 2D to omnidirectional images
Stars: ✭ 25 (+56.25%)
Mutual labels:  images
batch-transforms
Batch equivalent of PyTorch Transforms.
Stars: ✭ 33 (+106.25%)
Mutual labels:  images
rid-covid
Image-based COVID-19 diagnosis. Links to software, data, and other resources.
Stars: ✭ 74 (+362.5%)
Mutual labels:  images
pikt
🎨 Image-based poetic programming language.
Stars: ✭ 72 (+350%)
Mutual labels:  images
img
A python library to display images in the terminal
Stars: ✭ 55 (+243.75%)
Mutual labels:  images

py-rfc2397

Author: Jacob Oscarson
Contact email:[email protected]

Quick implementation of RFC2397 in Python, MIT Licenced. RFC2397 is also known as the 'data url' format used to embed image data directly into CSS stylesheets among other things.

The rationale behind this package is described in this blogpost.

Requirements

Python 2.6 and 2.7, not tested on Python 3+ (yet).

Installation

The latest version can be found on PyPI. The recommended way to install is via pip:

$ pip install rfc2397

An executable named rfc2397 is then placed in the python environment that pip installs to.

As an alternate method, it's also possible to copy the rfc2397.py file to any location and run the script stand-alone.

Usage

Just give rfc2397 a path to an image file. rfc2397 uses Python's mimetypes module to determine what MIME-type a file has (N.B: the program won't stop you from encoding something too large/an unsupported mime-type).

$ rfc2397 dot.png # <- your image path data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAADElEQVQImWP4o8oAAANCASIYayeeAAAAAElFTkSuQmCC

Changes

1.0b2 (2012-01-03)

  • Uses mimetypes module instead of primitive ad-hoc file name extension guessing.
  • rfc2397 is now a single-file module, simplifies package and makes it possible to just copy the rfc2397.py file to an arbitrary location as an alternate installation method.
  • Better QA by using tox.

1.0b1 (2011-06-16)

Concept and initial coding.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].