Hi,
On Mon, Jan 24, 2011 at 3:09 PM, refreegrata wrote:
> hello list, I have a question. How can I get the width and the size of
> an image previously saved?...
is the image a field in a model? AKA, ImageField. If that's the case,
what's wrong with the width and height fields?
Try this. PIL is required anyway for the Django image field. Perhaps there's
something
built into Django to get this info, but this article will give you a more
generic and widely useful understanding.
http://www.blog.pythonlibrary.org/2010/03/28/getting-photo-metadata-exif-using-python/
Shawn
hello list, I have a question. How can I get the width and the size of
an image previously saved?. This is , because I need to generate a
report with reportlab, and I must to resize the image, but I need the
original size to keep the scale.
Thanks and sorry for my bad english
--
You received
3 matches
Mail list logo