summaryrefslogtreecommitdiffstats
path: root/perl-install/bootsplash.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-05-09 12:01:47 +0000
committerOlivier Blin <oblin@mandriva.org>2005-05-09 12:01:47 +0000
commitbbe7c42af068d986076d1d6d1d5338f75ef7c247 (patch)
tree208b8e52a9c72e559dfd9f3e40a631ced53b3241 /perl-install/bootsplash.pm
parentfeea511f868403e89132aae2adfcaa3f2caff5be (diff)
downloaddrakx-bbe7c42af068d986076d1d6d1d5338f75ef7c247.tar
drakx-bbe7c42af068d986076d1d6d1d5338f75ef7c247.tar.gz
drakx-bbe7c42af068d986076d1d6d1d5338f75ef7c247.tar.bz2
drakx-bbe7c42af068d986076d1d6d1d5338f75ef7c247.tar.xz
drakx-bbe7c42af068d986076d1d6d1d5338f75ef7c247.zip
force the exact image size when writing a theme
Diffstat (limited to 'perl-install/bootsplash.pm')
-rw-r--r--perl-install/bootsplash.pm3
1 files changed, 2 insertions, 1 deletions
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);
}