Image
This module is the data model for an image on a page
EXAMPLES:
>>> sample_image
image at (0.13,0.605):(0.455,0.739)
Bases: quill.graphics_object.GraphicsObject
Embedded image on a page.
Whether the aspect ratio should be constrained when resizing.
Return type: | boolean |
---|
EXAMPLES:
>>> sample_image.constrain_aspect()
True
Return the image data (jpg).
Return type: | string |
---|
EXAMPLES:
>>> sample_image.data()
'\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00...
Return the image uuid.
Return type: | string |
---|
EXAMPLES:
>>> sample_image.uuid()
'ce34de3c-daeb-4a81-8620-e170441946c1'
Return the minimum x-coordinate.
Return type: | float |
---|
EXAMPLES:
>>> sample_image.x0()
0.12979288399219513
Return the maximum x-coordinate.
Return type: | float |
---|
EXAMPLES:
>>> sample_image.x1()
0.4552972912788391
Return the minimum y-coordinate.
Return type: | float |
---|
EXAMPLES:
>>> sample_image.y1()
0.7390127182006836
Return the maximum y-coordinate.
Return type: | float |
---|
EXAMPLES:
>>> sample_image.y1()
0.7390127182006836