8 plugins for Pillow #9226
59de44955ebd
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
for some Pillow based application (sort of an IrfanView clone written in Python) I'm currently working on I have created a couple of simple Pillow plugins, you can check them out here:
https://github.com/59de44955ebd/Pillow-Plugins
Here the list (from README.md):
Pillow-Plugins - 8 plugins for Pillow (Python)
1. DcrawImagePlugin
Read support for various camera RAW file formats based on dcraw.
Requires dcraw (binary for Windows is included, in Debian-based Linux distros install it with
sudo apt install dcraw
).Usage:
2. FfmpegImagePlugin
Allows Pillow to load arbitrary video files as (virtual) multi-frame images.
Requires FFmpeg.
Usage:
3. FreeImagePlugin
Read support for additional image file formats/image modes based on FreeImage.
Requires FreeImage (DLL for Windows is included, in Debian-based Linux distros install it with
sudo apt install libfreeimage3
).Usage:
4. GhostImagePlugin
Allows Pillow to load PDF and Adobe Illustrator (AI) files as (virtual) multi-frame images.
Requires Ghostscript (binary for Windows is included, in Debian-based Linux distros install it with
sudo apt install ghostscript
).Usage:
5. LibreImagePlugin
Allows Pillow to load CorelDraw (CDR), Macromedia FreeHand (FH/FHx) and OpenDocument Graphic (ODG) files as images via headless LibreOffice Draw.
Requires LibreOffice Draw (or OpenOffice Draw, not tested).
Usage:
6. SvgImagePlugin
Allows Pillow to load SVG vector graphic files as images.
Depends on pycairo (
pip install pycairo
, also available for Windows).Usage:
7. PilImagePlugin
Simple image plugin that allows Pillow to read and write image files with a custom image file format called "PIL" (.pil).
The PIL image file format supports any image mode that Pillow supports - that's the idea of the format and the reason why I invented it. So it can be used to save and load images also with rather exotic modes like e.g. "PA" (palette + alpha channel) or "LA" (grayscale + alpha channel), or 1-bit images with 2 custom colors instead of b/w (rawmode "P:1").
The format supports DEFLATE compression of the image data, which is the same compression that PNG uses. Therefor a compressed RGB PIL file has roughly the same filesize as the same image stored as PNG.
Usage:
There is also a Thumbnail Handler Shell Extension for Windows that allows Windows Explorer to show thumbnails for PIL files (15 modes supported).
Windows 11 Explorer showing thumbnails for PIL files with various image modes

8. WinImageShowPlugin
A better and way faster Image.show() implementation for Python 3.x x64 in Windows 10/11.
Images are shown in a native resizable viewer window, without creating any temporary files.
While the window is displayed, other (Pillow compatible) image files can be dropped into it from Explorer to view them.
In addition to Pillow the plugin only uses ctypes and the Windows API, no 3rd-party modules involved.
Usage:
The result in Windows 11

Beta Was this translation helpful? Give feedback.
All reactions