Skip to content

egdoc/lxcfg-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lxcfg utils

Tools to annotate and watermark articles pictures

Installing from source

This package depends on pygobject which provides the GTK Python bindings. Most probably you have this package already installed as part of your system (the package is called python3-gobject on Fedora, and python3-gi on Debian-based distributions), however if you want to build everything from source, you should install the required dependencies. On Fedora:

$ sudo dnf install python3-devel cairo-devel cairo-gobject-devel gobject-introspection-devel

On Debian/Debian-based distributions:

$ sudo apt-get install python3-dev libcairo2-dev libgirepository1.0-dev

The build and install the package directly from this repo you can run:

$ pip install git+https://github.com/egdoc/lxcfg-utils --user

Annotating an Image

Images can be annotated with the article title and subtitle using the lxcfg-annotate tool. The tool shows a preview of the changes as they are made, and allows changing the title box background color, the logo color, and applying a blur effect on the original image:

lxcfg-annotate-tool

The tool can be launched by running:

$ lxcfg-annotate

Applying watermarks on images

Images can be watermarked for Linuxconfig.org and Linuxcareers.com by using the lxcfg-watermark tool:

usage: lxcfg-watermark [-h] [-l | -q ] [-s {linuxconfig,linuxcareers}] [-f {avif,webp}] image outfile

positional arguments:
  image                 The image to watermark
  outfile               Name of the output image

options:
  -h, --help            show this help message and exit
  -l, --lossless        Use lossless compression
  -q , --quality        Image quality (50 to 100)
  -s {linuxconfig,linuxcareers}, --site {linuxconfig,linuxcareers}
                        The site watermark (default is linuxconfig)
  -f {avif,webp}, --image-format {avif,webp} Output image format

Images modified with these tools are automatically converted and saved in webp or avif format (default). No external dependencies are needed, only the Pillow library, which is installed automatically.

About

Utilities to ease working with linuxconfig,org articles and images

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages