 |
support.bibblelabs.com Forums for Bibble
|
| View previous topic :: View next topic |
| Author |
Message |
afx Bibble Expert
.gif)
Joined: 21 Jul 2005 Posts: 3981 Location: Munich
|
Posted: Thu Apr 27, 2006 10:36 pm Post subject: |
|
|
@Tonky: The font has to be on the sytem, on a windows box I had to install GhostScript to get a decent selection. I will not be caught dead using Arial!
@cogitech: Glad to be of help
cheers
afx _________________ sRGB clipping sucks |
|
| Back to top |
|
 |
twinger
Joined: 01 Apr 2006 Posts: 96 Location: St. Catharines, Ontario, Canada
|
Posted: Sun Apr 30, 2006 4:53 am Post subject: |
|
|
My solution to these limitations in Bibble is to use BreezeBrowser Pro alongside. It's not expensive, it's very fast, and its batch proofing command is very powerful: it can add watermarks, auto levels (if necessary), resize and resharpen. And the same commands are available on its HTML generation dialogue, from which I make simple web photo galleries. So I process raw files in Bibble and batch to print sizes, but use BBPro to produce e-mail and web proofs.
That said, I do agree that I'd like to see watermarking and sharpening available as an output option in Bibble batches. |
|
| Back to top |
|
 |
andreas

Joined: 15 May 2002 Posts: 280 Location: Wermelskirchen - Germany
|
Posted: Thu May 18, 2006 5:35 am Post subject: |
|
|
you should include some changes to the watermark.pl:
the script loops if there is no IPTC-Info in the img file and you try to use #IPTC
the line
| Code: | $tx =~ s/\#IPTC\[[^\]]+\]/$val/;
|
should be
| Code: | $tx =~ s/\#IPTC\[[^\]]+\]/$val/;
} else {
$tx =~ s/\#IPTC\[[^\]]+\]//
}
|
instead of afx's
| Code: | if ($tx && $tx ne '\n')
|
I would use
| Code: | $tx =~ s/\\n/\n/;
if ($tx =~ /\S/) {
|
This works for blanks and more than one linefeed in the text. It changes the strings "\n" to "real linefeeds" and puts the text in the cmd if there is at least one non-blank char in the text.
here is my actual full version:
| Code: | #!/usr/bin/perl -w
#!/bin/perl -w
#!perl -w
# optionally exchange the first lines as you need e.g. Windows without path spec
#
# Author: Andreas Schrell: as [at] schrell.de
# Description: create watermarks in picture with optional reading of IPTC info
# Info: put configuration in watermark.conf and locate it in home directory
# Version: 1.1 Mo. 13.03.2006 19:10:38
# Required: perl and Image::IPTCInfo
# IPTC ATTRIBUTE REFERENCE
# object name originating program
# edit status program version
# editorial update object cycle
# urgency by-line
# subject reference by-line title
# category city
# fixture identifier sub-location
# content location code province/state
# content location name country/primary location code
# release date country/primary location name
# release time original transmission reference
# expiration date headline
# expiration time credit
# special instructions source
# action advised copyright notice
# reference service contact
# reference date caption/abstract
# reference number writer/editor
# date created image type
# time created image orientation
# digital creation date language identifier
# digital creation time
#
# custom1 - custom20: NOT STANDARD but used by Fotostation.
# IPTCInfo also supports these fields.
use Image::IPTCInfo;
my $home;
if (defined $ENV{HOMEPATH}) { $home=$ENV{HOMEPATH}; }
if (defined $ENV{HOME}) { $home=$ENV{HOME}; }
my $settings = "$home/watermark.conf";
our $filename = $ARGV[0];
our ($Center,@Center,$North,@North,$East,@East,$West,@West,$South,@South);
our ($NorthWest,@NorthWest,$NorthEast,@NorthEast,$SouthWest,@SouthWest,$SouthEast,@SouthEast);
our $text;
our $font;
our $fontsize;
our $textcolor;
our $undercolor;
our $off;
our $offx;
our $offy;
our $dissolve;
our $view;
### Don't think you need to edit below here unless you want to tweak.
# Determine the size of the input image..
my $sizetmp=qx/identify $filename/;
if ($sizetmp =~ /^[^ ]+ [^ ]+ ([0-9]+)x([0-9]+) /) {
$sizex = $1;
$sizey = $2;
} else {
$sizex = 1000;
$sizey = 750;
}
$off='xy';
$Center->{off} = '';
$North->{off} = 'y';
$South->{off} = 'y';
$West->{off} = 'x';
$East->{off} = 'x';
my $cmd = "convert -size ${sizex}x${sizey} xc:none ";
require "$settings";
my $zero=0;
sub setval($$$) {
$pos = $_[0];
$tag = $_[1];
$def = $_[2];
my $w;
eval "\$w = (defined \$$pos" . "->{$tag}) ? \$$pos" . "->{$tag} : ((defined \$$tag) ? \$$tag : '$def')";
return $w;
}
foreach $pos ("Center","North","East","West","South","NorthEast","NorthWest","SouthEast","SouthWest") {
$o = setval($pos,"off","xy");
$ax = setval($pos, (($o=~/x/) ? "offx" : "zero") ,0); $ax = int($ax);
$ay = setval($pos, (($o=~/y/) ? "offy" : "zero") ,0); $ay = int($ay);
$tx = setval($pos,"text","");
$f = setval($pos,"font","Helvetica");
$fs = setval($pos,"fontsize",$sizey/30); $fs = int($fs);
$uc = setval($pos,"undercolor","gray");
$tc = setval($pos,"textcolor","black");
if ($tx) {
while ($tx =~ /\#IPTC\[([^\]]+)\]/) {
my $info = new Image::IPTCInfo("$filename");
if (defined $info) {
my $val = $info->Attribute("$1");
$val = (defined $val) ? $val : "";
$tx =~ s/\#IPTC\[[^\]]+\]/$val/;
} else {
$tx =~ s/\#IPTC\[[^\]]+\]//
}
}
$tx =~ s/\\n/\n/;
if ($tx =~ /\S/) {
$cmd .= "-pointsize $fs ";
$cmd .= "-font $f ";
$cmd .= "-undercolor $uc ";
$cmd .= "-fill $tc ";
$cmd .= "-gravity $pos -annotate '0x0+$ax+$ay' '$tx' ";
}
}
}
$cmd .= "miff:-";
print "$cmd | composite -dissolve $dissolve - $filename $filename\n";
system ("$cmd | composite -dissolve $dissolve - $filename $filename");
# Quickview for testing under Linux
if (defined $view) {
system("$view");
}
exit 0;
|
|
|
| Back to top |
|
 |
Mikek

Joined: 17 Jun 2004 Posts: 118 Location: West Virginia
|
Posted: Tue May 23, 2006 8:05 am Post subject: |
|
|
| taob wrote: | | IMHO, that type of functionality does not belong in raw workflow software. Image composition functionality (adding logos, watermarks, text captioning, stitching, warping, etc.) should be left to software like Photoshop. Of course, the Bibble guys might eventually decide to turn Bibble into a general-purpose batch image processor... but that's not what it is right now. |
Actually, considering that probably a lot of folks use Bibble as a "proofing" software (generate client-ready proof images for selections), I would think that watermarking would fit right in. It's at least as useful as the web gallery function. As it is, I run Bibble and still have to do a Photoshop run before the images are ready. _________________ Mike Keller
D2x, D70, WinXP Pro |
|
| Back to top |
|
 |
bibble Site Admin
.gif)
Joined: 30 Mar 2002 Posts: 6834 Location: Austin, Tx
|
Posted: Tue May 23, 2006 8:44 am Post subject: |
|
|
Adding more feature slike watermarking is definetly on our radard, but not something that is likley to happen very soon.
Eric |
|
| Back to top |
|
 |
mettur
Joined: 18 Jun 2006 Posts: 41
|
Posted: Mon Sep 18, 2006 5:31 am Post subject: |
|
|
[quote="bibble"]Adding more feature slike watermarking is definetly on our radard, but not something that is likley to happen very soon.
Eric[/quote]
Glad to see its in BibbleLabs radar screen. I wish it is coming soon. I cannot imagine people tying to make multiple items (imagemajik, perl script, gohstscript) all work together along with BibblePro to get the watermark. There has to be a better system (preferably built into Bibble Pro).
Some one talked about BreezeBrowser Pro. I need to check that, and also PS-CS2 (I am new to PS & BBPro) and see if there is a batch processing option, instead of making every thing work at the same time. |
|
| Back to top |
|
 |
marcof Bibble Expert
.gif)

Joined: 14 May 2003 Posts: 1442 Location: netherlands
|
Posted: Mon Sep 18, 2006 5:53 am Post subject: |
|
|
@mettur
you should also keep an eye on http://nexi.com/147
since he's pushing out a steady stream of plugins, who knows something with watermarking is in the works as well?
don't forget to try out those that are available already  _________________ Bibble 5 RAWks! |
|
| Back to top |
|
 |
Valery Expert Bibble
.gif)

Joined: 17 Jul 2006 Posts: 662 Location: France
|
Posted: Mon Sep 18, 2006 6:59 am Post subject: |
|
|
On this page http://bibplugs.livejournal.com/
News of Sept 10th:
| Quote: | | "Marc, the next major plug-in, is on the drawing board. Marc provides the visual watermarking capabilities that are essential to the workflow of the professional. Marc can capture any image you can load into Bibble and, after a chroma-key process, save it as a watermark. The mark can be scaled, positioned and faded anywhere on your working image." |
Another great tool for plugin, I think that Sean is unstopable! _________________ Valery Landon,
French translator of Bibble - Le traducteur de Bibble
http://bibble-photos.org (fr)
Canon 5DII - HP notebook - Ubuntu 9.10 64 bits - Intel Core 2 Duo P8400 @ 2.26GHz - RAM: 4Gb |
|
| Back to top |
|
 |
claudermilk
Joined: 04 Nov 2005 Posts: 871
|
Posted: Tue Sep 19, 2006 6:33 am Post subject: |
|
|
Unstoppable is an understatement! He tells us about two others, plus hints at even more later!  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|