Fixed WebGUI::Image->new doesn't obey width and height settings
This commit is contained in:
parent
400ceb4cdc
commit
dcf64ed83b
2 changed files with 6 additions and 2 deletions
|
|
@ -12,7 +12,8 @@
|
||||||
- Added better error handling in asset instanciation.
|
- Added better error handling in asset instanciation.
|
||||||
- fix: Image::Magick->Scale does nothing if given dimensions < 1, so make sure
|
- fix: Image::Magick->Scale does nothing if given dimensions < 1, so make sure
|
||||||
they are large enough when generating thumbnails in Storage/Image.pm
|
they are large enough when generating thumbnails in Storage/Image.pm
|
||||||
|
- fix: WebGUI::Image->new doesn't obey width and height settings (Martin Kamerbeek /Oqapi)
|
||||||
|
http://www.plainblack.com/bugs/tracker/webguiimage-new-doesnt-obey-width-and-height-settings
|
||||||
|
|
||||||
7.3.14
|
7.3.14
|
||||||
- fix: a typo in DatabaseLink.pm
|
- fix: a typo in DatabaseLink.pm
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,10 @@ sub new {
|
||||||
my $width = shift || 300;
|
my $width = shift || 300;
|
||||||
my $height = shift || 300;
|
my $height = shift || 300;
|
||||||
|
|
||||||
my $img = Image::Magick->new;
|
my $img = Image::Magick->new(
|
||||||
|
size => $width.'x'.$height,
|
||||||
|
);
|
||||||
|
|
||||||
$img->Read(filename => 'xc:white');
|
$img->Read(filename => 'xc:white');
|
||||||
|
|
||||||
bless {_image => $img, _session => $session, _properties => {
|
bless {_image => $img, _session => $session, _properties => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue