From 92fb660f504eb2ce5045d130ff76d233fb891975 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 11 Oct 2007 21:51:29 +0000 Subject: [PATCH] fix graph sizing problems with graphicsmagick --- docs/changelog/7.x.x.txt | 3 +++ lib/WebGUI/Image.pm | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 952de0d94..f7866000c 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,3 +1,6 @@ +7.4.10 + - fix: Graphs aren't sized properly using GraphicsMagick + 7.4.9 - fix: Bug that did not allow Calendar Update Feeds workflow activity to complete diff --git a/lib/WebGUI/Image.pm b/lib/WebGUI/Image.pm index 8854d27d8..5f2f00def 100644 --- a/lib/WebGUI/Image.pm +++ b/lib/WebGUI/Image.pm @@ -265,7 +265,7 @@ sub setImageHeight { my $height = shift; if ($graphicsPackage eq 'Graphics::Magick') { - $self->image->set(size => $self->getImageWidth.'x'.$height); + $self->image->Resize(height => $height); } else { $self->image->Extent(height => $height); @@ -290,7 +290,7 @@ sub setImageWidth { my $self = shift; my $width = shift; if ($graphicsPackage eq 'Graphics::Magick') { - $self->image->set(size => $width.'x'.$self->getImageHeight); + $self->image->Resize(width => $width); } else { $self->image->Extent(width => $width);