ShareShortcuts

iBase64

- Encode your images with base64 - Decode your base64 image and save it to the camera roll

arirafiq
Fork “iBase64”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so arirafiq gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
38K
Saved
0
Actions
13
Category
API
Version
1.0
Language
EN

Preview

  • Encode your images with base64 - Decode your base64 image and save it to the camera roll

What's New

Version 1.0

First release

Version History
1.0 Oct 4, 2022

First release

What it does

13 actions
  1. Comment
    Author: Ari R. Abdulla - Encode your images with base64 - Decode your base64 image and save it to the camera roll
  2. Choose from Menu
  3. Choose from Menu
    Image to Base64
  4. Select Photos
  5. Base64 Encode
  6. Copy to Clipboard
  7. Show Result
  8. Choose from Menu
    Base64 to Image
  9. Ask for Input
    Your Base64?
  10. Base64 Encode
  11. Get Images from Input
  12. Show Result
  13. Save to Photo Album

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/sharing'
#include 'actions/photos'
#define color darkgray
#define glyph boxFilled

/*
Author: Ari R. Abdulla
- Encode your images with base64
- Decode your base64 image and save it to the camera roll
*/

menu nil {
item "Image to Base64":
	const Photos = selectPhotos()
	const Base64Encoded = base64Encode(Photos)
	setClipboard(Base64Encoded)
	show("Copied to Clipboard!")
item "Base64 to Image":
	const ProvidedInput = prompt("Your Base64?")
	const Base64Encoded1 = base64Encode(ProvidedInput)
	const Images = getImages(Base64Encoded1)
	show(Images)
	savePhoto(Images)
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by arirafiq

See All

You Might Also Like

See All
Advertisement