I'd like to add a "fuzzy border" to a bunch of images that are in JPEG format. The "script_fu_fuzzy_border" function in Gimp does what I want; but I'd like to script it.
Here's the gist of what I have:
my $img = eval { Gimp->file_jpeg_load($file, $file) };
my $drawable = $img->active_drawable;
$img->script_fu_fuzzy_border($drawable, [255, 255, 255], "16", 1,
+"4", 1, "100", 0, 1);
eval {
Gimp->file_jpeg_save($img, $drawable, $file, $file,
0.8, 0, 1, 1, "w/ border", 0, 1, 0, 2);
};
The result is the same as the original image, no change. What am I doing wrong?