Returns the path of the image if it can.
(
self,
notify_type: NotifyType,
extension: Optional[str] = None,
)
| 645 | ) |
| 646 | |
| 647 | def image_path( |
| 648 | self, |
| 649 | notify_type: NotifyType, |
| 650 | extension: Optional[str] = None, |
| 651 | ) -> Optional[str]: |
| 652 | """Returns the path of the image if it can.""" |
| 653 | if not self.image_size: |
| 654 | return None |
| 655 | |
| 656 | return self.asset.image_path( |
| 657 | notify_type=notify_type, |
| 658 | image_size=self.image_size, |
| 659 | extension=extension, |
| 660 | ) |
| 661 | |
| 662 | def image_raw( |
| 663 | self, |
no outgoing calls