markphotos
- Update: The checkfor function was split off into its own
- (included) module.
Update: use the platform-neutral os.devnull instead of the /dev/null device that is generally only found on UNIX-like platforms.
The markphotos.zip script adds a copyright notice to pictures. It uses exiftool. This is not a visible notice, but one contained in the file's metadata. The following in an excerpt from the identify --verbose output of a photos that was marked by markphotos.py:
Image: img_0541.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Class: DirectClass
Geometry: 3648x2736+0+0
Resolution: 180x180
Print size: 20.2667x15.2
Units: PixelsPerInch
Type: TrueColor
...
Properties:
comment: Copyright © 2011 R.F. Smith <rsmith@xs4all.nl>
...
exif:DateTime: 2011:06:08 21:53:32
To speed up the processing of multiple pictures, this script runs in parallel on all the cores that your machine has. If you want to add a visual watermark to a picture, I suggest using the mogrify program from the ImageMagick suite.
N.B.: Edit the script and change the string cr in the function processfile to something appropriate before using this script!
| source: | markphotos.zip |
|---|---|
| GPG signature: | -----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)
iEYEABECAAYFAlDV83kACgkQEnfvsMMhpyWYVwCgleUBpc57GQRQmZYvqDYzwI9Y
J3YAn0MAU74NtiJk0Ia6KlPJyFuf3L04
=B3rW
-----END PGP SIGNATURE-----
|
| SHA256 hash: | 2e03fdffb1d157f7a50dd83e0e82bb1e3e6c7ae7d466107f830bd701afbdc86b |
| Requirements: | python, exiftool |
