org.bluez.obex.Image(5)

πŸ’– org.bluez.obex.Image β€” the manual page, bestie πŸ’–

okay so welcome to the org.bluez.obex.Image(5) manual page β€” yes, it's the BlueZ D-Bus OBEX Image API documentation, and we're gonna get through it together. no cap. 🫢


🌸 Name 🌸

org.bluez.obex.Image β€” BlueZ D-Bus OBEX Image API documentation. that's the whole name section, periodt. ✨


πŸ”Œ Interface πŸ”Œ

  • Service β€” org.bluez.obex
  • Interface β€” org.bluez.obex.Image1 [experimental] πŸ‘€
  • Object path β€” [Session object path]

✨ Methods ✨

πŸ–ΌοΈ object, dict Get(string targetfile, string handle, dict description)

Retrieves the image corresponding to the handle and the description, as one of the descriptions retrieved by GetImageProperties, and stores it in a local file. literally fetching the pic and saving it locally, slay. πŸ’…

If the "transform" property description exists, it should be set to one of the value listed by GetImageProperties for this description. so yeah, pick from the list, bestie.

If description is an empty dict, the native image will be retrieved. empty dict = native pic, got it. πŸŽ€

πŸ’€ Possible errors

  • org.bluez.obex.Error.InvalidArguments
  • org.bluez.obex.Error.Failed

🧚 array{dict} Properties(string handle)

Retrieves the image properties corresponding to the handle. it's giving property reveal. 🌈

The first dict entry is mandatory and correspond to 'handle' and 'name' of the image.

The second dict entry is mandatory and correspond to the native description ('type':'native') of the image.

The following dict entries are optional and correspond to variant descriptions of the image. If the 'transform' entry exists in the description, it lists the available possible image transformations and should be set to one of them before using the description as parameter to GetImage. iykyk β€” set that transform first. πŸ‘‘

🌟 Possible property values

  • string type β€” Type of dict properties. Mandatory for each dict. Possible values: "native", "variant"
  • string encoding β€” File encoding format. Possible values: "BMP", "GIF", "JPEG", "JPEG2000", "PNG", "WBMP"
  • string pixel β€” File encoding format size of form "<width>*<height>".
  • uint64 size β€” File size.
  • uint64 maxsize β€” File maximum size.
  • string transformation β€” List of available transformations separated by space. Possible values: "crop", "fill", "stretch"

πŸ’€ Possible errors

  • org.bluez.obex.Error.InvalidArguments
  • org.bluez.obex.Error.Failed

πŸ¦‹ object, dict GetThumbnail(string targetfile, string handle)

Retrieves the image thumbnail corresponding to the handle and stores it in a local file. tiny pic energy, iconic. πŸ“

πŸ’€ Possible errors

  • org.bluez.obex.Error.InvalidArguments
  • org.bluez.obex.Error.Failed

okay bestie, that's the whole page β€” sourced from BlueZ, dated August 2024, and it's the org.bluez.obex.Image(5) page. bye, ily, go save some images πŸ’œβœ¨

πŸ“¦ where this page comes from