On Wed, Jul 02, 2008 at 07:27:17PM +1000, Bluebie, Jenna wrote:
> I'd like to emphasise how annoying this is, because on Mac OS X, using 
> imagesize causes SIGABRT crashes after you use it a few times (so useless 
> in animation). I have NO way to read the width and height of my images 
> aside from using command line image manipulation utilities or perhaps, 
> image magick. :/

okay, just checked in some code relevant to this.  when using
`imagesize` and an image is cached, it just gets the size from the
cache.  if you call `imagesize` and there's no image in the cache,
it quickly grabs the size from the image header.

also, the image.full_width and image.full_height methods are new,
for getting the unscaled dimensions of an image.  (the bug with
`height` returning 0 is because the image hasn't been displayed
yet.)

_why

Reply via email to