From bbe7c42af068d986076d1d6d1d5338f75ef7c247 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 9 May 2005 12:01:47 +0000 Subject: force the exact image size when writing a theme --- perl-install/bootsplash.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-install/bootsplash.pm b/perl-install/bootsplash.pm index 2184b07b2..e5b7ccac6 100644 --- a/perl-install/bootsplash.pm +++ b/perl-install/bootsplash.pm @@ -97,7 +97,8 @@ sub theme_set_image_for_resolution { my ($name, $res, $source_image) = @_; my $dest_image = theme_get_image_for_resolution($name, $res); create_path($dest_image); - system('convert', '-scale', $res, $source_image, $dest_image); + #- Append an exclamation point to the geometry to force the image size to exactly the size you specify. + system('convert', '-geometry', $res . '!', $source_image, $dest_image); system($bootsplash_scripts . '/rewritejpeg', $dest_image); } -- cgit v1.2.1