gina-alaska/makemap — Issue #8: watermark/copyright images
Author: dayne
Created: 2012-02-08 05:47:21+00:00
State: open

Some of the imagery we have on the feeds will need a copyright notice of some sort.

Things like the USGS DRGs are public domain and there is no reason to modify them at all but adding our GINA logo nicely would help us identify the use of makemap in the wild.

For the SDMI BDL we need to burn a watermark/copyright notice on to the image.

The concept I'm thinking we burn a small GINA logo in the bottom left on all images with 30% or more transperancy. For the feeds that require a copyright notice toss that in the bottom right.

ImageMagick's composite command should make this process easy.

Always do something along the lines of:
composite -gravity southwest -dissolve 20 watermark/gina.jpg input_file output_file

Then some logic to check if a feed-copyright.jpg exists and if it does also burn it with a similar command:
composite -gravity southeast -dissolve 10 watermark/#{feed}-copyright.jpg input_file output_file

If we can instead create a cool tool that burns arbitrary text onto the image that would be even better than an image.

For the BDL we should have a the text: "imagery (c) respective holders : http://alaskamapped.org/bdl"

That URL wille explain the copyright information and provide links to determining the source imagery being displayed.

*Sounds so easy...*

_GOTCHA_

convert is not aware of GeoTIFF tags and so the resulting output_files will lose their geometry fields. I think Jay has a tool/method that can 'copy' them from one image to another. If not he should be able to make that tool fairly easily. I'll pretend he has it:

gdal-copy-info source_image_with_tags target_image_without_tags output_image

----

The most super awesome thing ever would be a: gdal-composite tool that did what composite does but doesn't lose the geometry information. @spruceboy should chime in if that is a reasonable tool we could add to the dans-gdal-scripts.