--- loncom/xml/londefdef.pm 2004/04/06 18:05:29 1.208 +++ loncom/xml/londefdef.pm 2004/04/15 17:37:04 1.209 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.208 2004/04/06 18:05:29 sakharuk Exp $ +# $Id: londefdef.pm,v 1.209 2004/04/15 17:37:04 albertel Exp $ # # # Copyright Michigan State University Board of Trustees @@ -2343,7 +2343,9 @@ sub start_img { &image_replication($src); if (-e $src) { my $image = Image::Magick->new; - my ($width, $height, $size, $format) = $image->Ping($src); + $image->Read($src); + my ($width, $height) = ($image->Get('width'), + $image->Get('height')); if ($width && $height) { $token->[2]{'width'} =$width; $token->[2]{'height'}=$height;