lib/snapshot/page.html.erb in snapshot-0.4.5 vs lib/snapshot/page.html.erb in snapshot-0.4.6

- old
+ new

@@ -39,10 +39,10 @@ <tr> <% screens.each do |screen_path| %> <% next if screen_path.include?"_framed.png" %> <td> <% path = screen_path.gsub("./screenshots/", "./") %> - <% screen_size = FastImage.size(screen_path) %> + <% screen_size = FastImage.size(File.join('screenshots', screen_path)) %> <a href="<%= path %>" target="_blank"> <img class="screenshot" src="<%= path %>", style="width: <%= [(screen_size[0] / divide_size_by).round, max_width].min %>px;" /> </a> \ No newline at end of file