Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Jan. 24, 2011 20:09:21

r.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

size of an image


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 this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 24, 2011 20:15:20

Shawn M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

size of an image


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

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 25, 2011 01:07:19

Carlos A.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

size of an image


Hi,

On Mon, Jan 24, 2011 at 3:09 PM, refreegrata <refreegr...@yahoo.com> 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?

HTH,
Carlos.

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 21st of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support