Skip to content

Repository files navigation

Python Platform

spaces to _

A very simple python program that finds spaces in filenames and replaces them with _ Does this for every file and directory in a directory that is passed in as argument 1

Usage

python SingleImageVisWatermark.py "D:\fully\qualified\path\to\my watermark.png" "c:\fully\qualified\path\to\my image.jpg"

Registry hack

Type regedit and press Enter to open the Registry Editor.

Navigate to the following path: HKEY_CLASSES_ROOT\Directory\shell

Right-click on the shell key, select New > Key, and name it whatever you want the context menu item to be

With the new key selected, right-click in the right pane, select New > String Value, and name it Icon. Double-click the new Icon value, type cmd.exe, and press Enter

Right-click on the new key you created, select New > Key, and name it command.

With the command key selected, in the right pane, double-click the Default value. In the Value data box, type

cmd.exe /k python "D:\fully\qualified\path\to\spacesto_.py" %1

Note %1 is passed in fully qualified and with quotes. As soon as you enter this in right click on a directory in explorer and all .png .jpg .jpeg .jfif files in the directory will be watermarked with your watermark

SingleImageVisWatermark

Simple python script to apply visable watermark image to lower right hand corner of target image

Usage

python SingleImageVisWatermark.py "D:\fully\qualified\path\to\my watermark.png" "c:\fully\qualified\path\to\my image.jpg"

A directory called watermarked will be created in the same directory as the second parameter "c:\fully\qualified\path\to\my image.jpg" the watermarked image will be called my image_watermarked.jpg NOTE. the resulting image will be converted to a .jpg file

The goal of this python script is to allow for the creation of a right click menu item in windows

Registry Hack

Type regedit and press Enter to open the Registry Editor

Navigate to the following path: HKEY_CLASSES_ROOT*\shell

Right-click on the shell key, select New > Key, and name it whatever you want the context menu item to be

With the new key selected, right-click in the right pane, select New > String Value, and name it Icon. Double-click the new Icon value, type cmd.exe, and press Enter

Right-click on the new key you created, select New > Key, and name it command. With the command key selected, in the right pane, double-click the Default value. In the Value data box, type

cmd.exe /k python "D:\fully\qualified\path\to\SingleImageVisWatermark.py" "D:\fully\qualified\path\to\my watermark.png" %1

Note %1 is passed in fully qualified and with quotes. As soon as you enter this in right click on an image file (must be .png .jpg .jpeg .jfif)

DirectoryeVisWatermark

Simple python script to apply visable watermark image to lower right hand corner of every image file in a directory Intended to be bound to right click menu via the windows registry

Usage

python DirectoryeVisWatermark.py "D:\fully\qualified\path\to\my watermark.png" "c:\fully\qualified\path"

A directory called watermarked will be created as a subdirectory of parameter #2 all the watermarked files will be put in that directory the watermarked image will be called my image_watermarked.jpg NOTE. the resulting image will be converted to a .jpg file

Registry hack

Type regedit and press Enter to open the Registry Editor.

Navigate to the following path: HKEY_CLASSES_ROOT\Directory\shell

Right-click on the shell key, select New > Key, and name it whatever you want the context menu item to be

With the new key selected, right-click in the right pane, select New > String Value, and name it Icon. Double-click the new Icon value, type cmd.exe, and press Enter

Right-click on the new key you created, select New > Key, and name it command.

With the command key selected, in the right pane, double-click the Default value. In the Value data box, type

cmd.exe /k python "D:\fully\qualified\path\to\DirectoryeVisWatermark.py" "D:\fully\qualified\path\to\my watermark.png" %1

Note %1 is passed in fully qualified and with quotes. As soon as you enter this in right click on a directory in explorer and all .png .jpg .jpeg .jfif files in the directory will be watermarked with your watermark

Watermark Tree

simple command line python tool to Add both a visable and hidden, attack resistant watermark to images Based on Blind watermark which is based on DWT-DCT-SVD.

Current version. crude, no options, but it works.

Python Platform stars

Add both a visable and hidden watermark to every .png .jpg and .jpeg file in an entire directory tree

install

clone the repo
pip install blind-watermark

How to use

Create a watermark image, preferably .png with transparency. if you don't know how to do this, ask ChatGPT or bing image creator to create an image with transparency for you. Second edit the WatermarkerTree.py file change the copyright_message variable to be whatever you want it to be, this will get embedded into the image as a hidden watermark Make the same change to WatermarkTester.py Save it out then simply type: Use in cmd or powershell window

python WatermarkerTree.py "PAth To Your watermark Image"

to test a file if it has your watermark, first make sure the watermarkteseter.py file has the exact same copyright_message as your WatermarkerTree.py In the directory with questionaable watermarked files

python WatermarkTester.py

Output: Filename: Watermark - copywrite message Filename" : No matching watermark or different string

Related Project

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages