Skip to content

pmaigutyak/mp-watermarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Watermarks

  • add django-watermarks to requirements.txt
  • add watermarks to INSTALLED_APPS
  • add images using example:
WATERMARKS = {
    'product': {
        'opacity': 0.6,
        'position_x': 'center',
        'position_y': 'bottom',
        'file': 'product-watermark.png'
    }
}
  • use watermarks.utils.insert_watermark method to process image
from watermarks.utils import insert_watermark
 
try:
    insert_watermark('product', instance.file.path)
except Exception as e:
    pass

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •