Getting the image size

2000-08-21 Thread cmoewes

I am trying to develop a script for scaling images and I cant seem to
find out how to get the size (pixels x and y) of the image once I load
it.

my $img2 = Gimp-file_load($file,$file);

How do I get the height and width of this image??

Thanks in advance.


-- 

Christopher R. Moewes-Bystrom
[EMAIL PROTECTED]
http://www.moewes.com
http://www.linuxnovice.org



Re: Getting the image size

2000-08-21 Thread Marc Lehmann

On Mon, Aug 21, 2000 at 10:50:34AM -0500, [EMAIL PROTECTED] wrote:
 I am trying to develop a script for scaling images and I cant seem to
 find out how to get the size (pixels x and y) of the image once I load
 it.
 
 my $img2 = Gimp-file_load($file,$file);
 
 How do I get the height and width of this image??

$img2-width

Now transfer this knowledge to "height" ;)

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED] |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |