Photo Height and Width Values

314 views
Skip to first unread message

Jonathan Moore

unread,
Jul 20, 2011, 6:32:24 AM7/20/11
to Tumblr Themes
I've suggested it in the past, but with the recent updates to the API
and custom themes I wanted to bring it up again. Right now the hurdle
to the more unique custom themes is the fact that we don't have access
to the specific heights and widths of post images.

For example with grid layout that use jQuery plugins like Isotope or
Masonry we have to add functionality to hide all the posts until all
the images are fully loaded and then trigger they layout and display
the posts. Also, I'm currently working on a jQuery plugin to recreate
flexible width photosets where I'm running into the same situation
where I need the image heights prior to rendering the images in the
grid.

Technically now with the API updates I could make calls for each of
the posts, but that seems like an inefficient use of the API and a ton
of unused data being served up.

Here is what I would love to see as an addition that falls in line
with the new API current custom theme naming conventions -

{PhotoWidth-500}
{PhotoHeight-500}

{PhotoWidth-400}
{PhotoHeight-400}

{PhotoWidth-HighRes}
{PhotoHeight-HighRes}

...

Since in situations where '500px wide' portrait images might be less
than 500px it would also be necessary to have access to PhotoWidth in
addition to PhotoHeight

TexasPsycho

unread,
Jul 29, 2011, 9:48:31 PM7/29/11
to Tumblr Themes
you can get the dimensions via the V2 api actually I will work on a
small widget to allow you to get this info within a theme easily, I
agree its a problem if your theme is using almost any JQ addons, like
the sliders and other very nice effects.
Reply all
Reply to author
Forward
0 new messages