<guardian>
I'm sorry, can't review right now, I'm at work while being on holidays since yesterday night
<ddfreyne>
Oh yikes :(
<guardian>
finished by own tasks but I offered help to others, so I'm finishing this as well :)
<guardian>
it's ok in 4 hours I'll be in a swimming pool
<travis-ci>
[travis-ci] nanoc/nanoc/better-style 7385ceb Denis Defreyne: The build passed.
<travis-ci>
[travis-ci] nanoc/nanoc/master 892adb9 Denis Defreyne: The build passed.
number-six has quit [Ping timeout: 260 seconds]
<travis-ci>
[travis-ci] nanoc/nanoc/master 893d67a Denis Defreyne: The build passed.
number-six has joined #nanoc
alerante has joined #nanoc
pkunc has joined #nanoc
<bobbens>
I'm trying to get width/heights of images I'm compiling and thus actively resizing and stuff
<bobbens>
since you can't get the compiled content of binary items, how would you get this? the problem is they're not being compiled before the markdown
<bobbens>
so if I try to access the output directly, it's not created yet. Is it possible to force the images to be compiled and routed first?
<ddfreyne>
bobbens: You can access the input filename, and do something with that.
<ddfreyne>
That should do the trick for you
<bobbens>
well the thing is you want to access the compiled one
<bobbens>
because the input file is like 500x300, but it'll be compiled so that maybe it's 100x60
<bobbens>
and you want to ge the 100x60 value, not 500x300
alerante has quit [Remote host closed the connection]
alerante has joined #nanoc
alerante has quit [Ping timeout: 276 seconds]
pkunc has quit [Quit: Leaving.]
jugglinmike has joined #nanoc
alerante has joined #nanoc
ldk has quit [Ping timeout: 252 seconds]
jugglinmike has quit [*.net *.split]
jugglinmike has joined #nanoc
ldk has joined #nanoc
pkunc has joined #nanoc
<guardian>
bobbens: you might find one of my helpers interesting: http://pastebin.com/ZgYkHgqx -- it's meant to be called with erb filtering, like in the middle of a markdown document you write <%= image('foo', { :align => :right }) %> and it's going to find an image named "foo.xxx" what ever ".xxx" is (could be e.g. ".png" or ".jpg")
<guardian>
bobbens: the helper assumes there are 3 reps for an image: :teaser, :default, :original
<guardian>
bobbens: :teaser and :default are resized images, :original is the original unscaled image
<guardian>
bobbens: :teaser is typically a 128x128 or 256x256 thumbnail, while :default corresponds to an image resized to match site layout's contraints
<guardian>
bobbens: and line 27 and 28 of that helper use rmagick to get the dimensions of the image
<bobbens>
if I read it right, you're using raw_path?
<bobbens>
how does that work if it's not compiled yet?
<bobbens>
I mean the reps are generated with imagemagick right?
ics has joined #nanoc
ics has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]