Re: Getting the image size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 21, 2000 at 10:50:34AM -0500, cmoewes@xxxxxxxxxx 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      +--
      --==---/ / _ \/ // /\ \/ /       pcg@xxxxxxxxxxxxx |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux