Repository URL to install this package:
|
Version:
0.8.10 ▾
|
Feature: Append an inline picture in its own paragraph
In order add an image to a document
As a developer using python-docx
I need a way to add a picture in its own paragraph
Scenario: Add a picture at native size
Given a blank document
When I add a picture specifying only the image file
Then the document contains the inline picture
And the picture has its native width and height
Scenario: Add a picture specifying both width and height
Given a blank document
When I add a picture specifying 1.75" width and 2.5" height
Then picture.width is 1.75 inches
And picture.height is 2.5 inches
Scenario: Add a picture specifying only width
Given a blank document
When I add a picture specifying a width of 1.5 inches
Then picture.height is 2.14 inches
Scenario: Add a picture specifying only height
Given a blank document
When I add a picture specifying a height of 1.5 inches
Then picture.width is 1.05 inches