montera34 / pageonex

PageOneX. Analyzing front pages
http://pageonex.com
GNU Affero General Public License v3.0
54 stars 13 forks source link

Wrong alignment of newspaper labels and images #177

Closed numeroteca closed 11 years ago

numeroteca commented 11 years ago

Like in #161, wrong alignment of newspaper labels happened again. Example: http://pageonex.com/numeroteca/corrupcion-espana-julio-2013/

I think it is related to d70f1509: In display.html.erb: ` <% @img_map_info['row_info'].each do |media_id,info| %>

  • <%=info['name']%>
  • <% end %>`

    I think it should take in account the new info for the height of the thumb in the image map set at def calculate_image_map_width_height in lib/image_compositor.rb:167 How to set the good height to the labels?

    Besides, weird too big space space bellow La Razon newspaper in the composite image of this thread: http://pageonex.com/numeroteca/corrupcion-espana-julio-2013/ Why is this happening? I saw similar weird behavior in this other thread http://pageonex.com/numeroteca/nsa-leaks-prism/

    numeroteca commented 11 years ago

    alignment-labels

    rahulbot commented 11 years ago

    fixed - when I refactored the composite image generation I added the padding twice... oops!