google-code-export / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

no way to get actual size of resized photo #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. get a Photo object p
2. call e.g. p.get_display_size() (with fix from Issue 42)

What is the expected output? What do you see instead?
The actual size of the photo would be useful for the width= and height=
attributes of an <img> tag.
The method returns the maximum size of the given PhotoSize instead.

What version of the product are you using? On what operating system?
2.0 branch revision 185 on Ubuntu 7.10 Gutsy.

Please provide any additional information below.
This attachment modifies get_*_size() methods to return actual sizes.

Original issue reported on code.google.com by akaih...@gmail.com on 29 Mar 2008 at 6:20

Attachments:

GoogleCodeExporter commented 9 years ago
No worries on the double post.

The old _get_SIZE_size has been renamed _get_SIZE_photosize and returns the 
photosize
object. _get_SIZE_size now returns the actual file dimensions.

Original comment by justin.d...@gmail.com on 31 Mar 2008 at 8:25