FR: Base64 text encode/decode - native functions and/or text Filters

Simple feature suggestion:

Add native text processing functions to encode and decode Base64 text. Could also add these alongside existing text Filter macro actions.

I know there's multiple ways to skin that cat - bash scripts etc. can be used (I wrote a swift script to do this in KM) but it could be faster if done natively as KM functions, and seems broadly useful (along side HTML and JSON functions, for example).

Why do you need this?

/usr/bin/base64 is installed by the system, so someone could easily write a Plug In Action for it if desired.

I could add a filter for it I suppose, but I'm not sure there is enough need for it to be worthwhile.

1 Like

Fair enough, my use cases are edge cases but thought I would make the suggestion any way.

1 Like

Base64 Conversion Macro (v9.0.5)

Meanwhile, assuming usr/bin/base64 exists as Peter points out, this macro will convert a selected image into the base64 text and also build an HTML page to display it. (Oddly named for my imaging palette.)

92)Base64 Conversion.kmmacros (5.3 KB)

2 Likes
`say -v Federica "Fatto!"`;

Dio, mi sono innamorato di Federica :smiling_face_with_three_hearts:

I know the feeling :grinning:.

1 Like