@zogstrip, o que você acha 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
em vez do atual:
Certamente é menos surpreendente do que o comportamento atual e deixaria o @awesomerobot feliz. A única inconveniência real que consigo ver é que esse teste é muito, muito, muito mockado.
Se você gostar, fique à vontade para fazer o commit.