La configuración del sitio `min ratio to crop` debe respetar la relación w/h definida en markdown

@zogstrip ¿qué opinas de


    if crop
      cropped_width, cropped_height = ImageSizer.crop(original_width, original_height)

      if cropped_width < width
        width = cropped_width
        img["width"] = width
      end

      if cropped_height < height
        height = cropped_height
        img["height"] = height
      end
    end

frente al actual:

Ciertamente es menos sorprendente que el comportamiento actual y le haría feliz a @awesomerobot. La única molestia real que veo es que esta prueba es muy, muy, muy dependiente de mocks.

Si te parece bien, siéntete libre de hacer el commit.

7 Me gusta