Re: [greenstone-users] branding

From Stephen DeGabrielle
DateThu, 29 Dec 2005 09:32:33 +0930
Subject Re: [greenstone-users] branding
In-Reply-To (20051228200301-AFE791187F-outsmtp2-prod-mis-yu-edu)
Not specifically,

greenstone uses imagmagick to handle images (at least with ImagePlug)

It is easy to modify the script to as a logo or a watermark to the
images. I have done this before I just can't remember where I left the
collection at the moment.

>From what I can remember I modified this bit of imagePlug

if ($converttotype ne "" && $filename =~ m/$converttotype$/) {

$originalfilename = $filename;
$filename = &util::get_tmp_filename() . ".$converttotype";
$self->{'tmp_filename'} = $filename;

my $command = "convert -interlace plane -verbose
"$originalfilename" "$filename"";
print $outhandle "$command " if ($verbosity > 2);
my $result = '';
$result = `$command`;
print $outhandle "RESULT = $result " if ($verbosity > 2);

$type = $converttotype;
}

As you can see it builds then executes a command;
- I checked the imagemagick documentation to find out how to add a
watermark/logo to the image then modified the above code.

Good luck & happy new year,

s.

On 12/29/05, Heather Rolen <rolen@yu.edu> wrote:
>
>
>
> Does Greenstone have a feature to brand images with a logo, such as
> copyright info?
>
> Thanks!
>
> Heather
> _______________________________________________
> greenstone-users mailing list
> greenstone-users@list.scms.waikato.ac.nz
> https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>
>
>


--

--

Stephen De Gabrielle