MCPcopy
hub / github.com/caronc/apprise / image_path

Method image_path

apprise/plugins/base.py:647–660  ·  view source on GitHub ↗

Returns the path of the image if it can.

(
        self,
        notify_type: NotifyType,
        extension: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

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,

Callers 6

test_notify_baseFunction · 0.95
sendMethod · 0.45
sendMethod · 0.45
sendMethod · 0.45
send_mediaMethod · 0.45
sendMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_notify_baseFunction · 0.76