How to use the sigal.signals.img_resized.connect function in sigal

To help you get started, we’ve selected a few sigal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github saimn / sigal / sigal / plugins / copyright.py View on Github external
def register(settings):
    if settings.get('copyright'):
        signals.img_resized.connect(add_copyright)
    else:
        logger.warning('Copyright text is not set')
github saimn / sigal / sigal / plugins / adjust.py View on Github external
def register(settings):
    if settings.get('adjust_options'):
        signals.img_resized.connect(adjust)
    else:
        logger.warning('Adjust options are not set')
github saimn / sigal / sigal / plugins / watermark.py View on Github external
def register(settings):
    logger = logging.getLogger(__name__)
    if settings.get('watermark'):
        signals.img_resized.connect(add_watermark)
    else:
        logger.warning('Watermark image is not set')