We want the left image column to be dynamic based on image size so we can't hard-code the width. The problem is, if we have long text content in the cell to the right of the image cell, it shrinks the image cell to smaller than the image size.
Prawn::Document.generate("hello.pdf") do
long_text_string = "Test Copy " * 100
table([[{image: open("https://www.placehold.it/200x200.jpg")}, long_text_string]])
end
We want the left image column to be dynamic based on image size so we can't hard-code the width. The problem is, if we have long text content in the cell to the right of the image cell, it shrinks the image cell to smaller than the image size.
Results In:![screen shot 2019-01-01 at 3 12 17 pm](https://user-images.githubusercontent.com/732877/50576839-dab5fb80-0dd7-11e9-8cb5-378509a33fa3.png)