In openpyxl 2.4, one can specify the size of an image being written to a worksheet by providing the size argument in
In openpyxl 2.5, this argument is no longer available in
However, if I add the
height attributes to the instance directly like this:
from openpyxl.drawing.image import Image image = Image(stream) image.width = 100 image.height = 100
Then it does get picked up by the anchor created in
openpyxl.drawing.spreadsheet_drawing._check_anchor and it works.
Would it make sense to reinstroduce the
size argument in
Now I have code that add the
height attributes directly on the instance, but I find it extremely uncomfortable that this is undocumented.
The change to removing
Image.__init__ seems to me a bug because I can't otherwise see how the
size can be set from the public interface.