Discovering image dimensions
Carol Spears
carol at gimp.org
Fri Mar 3 07:00:10 EST 2006
On Thu, Mar 02, 2006 at 11:02:46AM -0800, Travis Reitter wrote:
> If a large page (like Planet GNOME) has a handful of images in some of
> the top posts, and you scroll down to read another post, what you're
> trying to read can keep getting bumped down if the images do not have
> set <img> dimensions.
>
> Of course, it's "the blogger's fault" for not setting the image
> attributes, but I think it'd be handy if Planet Planet detected (via
> ImageMagick - there are Python bindings) image dimensions, and set them
> within each feed (if they don't already exist).
>
> Maybe this wouldn't be a default (to not increase minimum dependencies),
> but it'd be a nice option.
>
i actually am in need of simply knowing image dimensions as well. i
even would like a choice of methods to know the image dimensions, for
instance by using gobject or pil. i already have gobject available but
others might have easier access to the pil.
once there is access to the information, anything else that needs to be
done (for my needs) could be handled in the template loopy things....
carol
More information about the devel
mailing list