I created an iOS Shortcut that makes it easier than ever to post images on your favorite Nostr client from your iPhone!

You can share an image from Share Sheet to the Shortcut, and it’ll upload the image nostr.build and copy the URL of the uploaded image to your clipboard.

You can try the Shortcut yourself:

https://www.icloud.com/shortcuts/4bc40049130144f6987a98ea27e69468

Demo of it below👇 Enjoy!

https://nostr.build/av/nostr.build_c8ee5789ed4ef6bfe8472c983a140f791b15f919f6b7f672e999ef4d8050c005.mov

Reply to this note

Please Login to reply.

Discussion

If you're unfamiliar with iOS shortcuts, they are mini applications anyone can build that allow you to automate various tasks. Learn more here: https://support.apple.com/en-gb/guide/shortcuts/welcome/ios

If you install the Shortcut linked above, it will work without installing any additional apps.

You can even manually run the Shortcut by adding it as a widget to your home screen and it'll prompt you to select an image from your photo gallery to upload.

Clever.

Couldn't have done it without #[4]

All, #[0]​ created a really cool iOS shortcut that allows you to instantly upload to nostr.build from your image library, and receive the link to your iOS clipboard , more details below🤯🤯🤯

#[1]

Yuuussss ty . Damus 1 step closer to being seamless

It worked. Development cycles on Nostr like …

#[4]​ this is awesome 👏

Nice 👍

Cool

#[0]

Brilliant stuff. Love it

#[0]

Testing out this apple shortcut.

#[1]

#[2]

Testing IRL now, just go to your camera roll, choose your image and ‘share’ it with nostr.build, link copied, boom..

Does it work with pro?

No, just free. We are using an API going to the free upload. Would need your npub for that.

This is really just a bandaid until

It’s all integrated into apps. Once integrated into apps, it’s easy to get your npub, so direct acct access would be easy also. Imagine having all your acct images pop up above your keyboard when ready!

Sorry, only wmv, mp4, avi and mov video files are allowed.Sorry, your file was not uploaded, try a different image type."https:\/\/nostr.build\/i\/"

Was this the response you got back to your clipboard? What video type were you trying to upload?

I will look into adding some sort of logic will return an error to the user when they try to upload an unsupported file type. This is a limitation imposed by nostr.build.

Yes, that was pasted directly from my clipboard. So, that’s the interesting part, though… I was uploading a jpg. 🤷🏻‍♂️

#[5] what are all the current supported file types?

It’s a picture I’ve uploaded there before direct from my phone. Same file. 🧐

I honestly have no idea what it could be then lol seems to be working for most people.

Out of curiosity, if you try again, does it return the same result?

It might be hvec, apple specific type that is not supported. Apple might be converting it for the upload program, but not for this flow?

Just tested and works for me on a few images, but I would have issues before with hvec native..

Supported files; jpg, png, gif, mov, mp4

I bet that’s exactly what’s happening.

I converted my iPhone back to jpeg.. screw hvec!who supports that crap???

It’s the Lightning Connector of image formats.

How’d you convert it back? In the settings somewhere?

Good to know, thanks!

I am getting the same results from my photo library

It’s because the HEIC image type is not supported.

Switch to “Most Compatible” format under Settings > Camera and photos you take with camera will be saved in a supported format.

Another solution would be for #[2]​ to add support for HEIC but that might be challenging..

Perfect thanks, would this change format for already taken photos or only ones moving forward?

Moving forward. It doesn't reformat the previously taken images. A stupid workaround would be screenshotting the photo, as screenshots are saved as jpgs always.

Cool, tried that and it works. Janky but it works! Thanks. Sweet shortcut gonna be a life saver ⚡️

Updated the shortcut so that it throws an error if you’re trying to upload an HEIC type file: https://www.icloud.com/shortcuts/bde8c50b19084bbc8d0f6f7e5868530c

I got the same thing when trying a photo.

Seems to work if I use a screenshot like the demo video but not from the photos app.

Your images are probably HEIC, which is not supported by Nostr.build.

You can change this in Settings > Camera to “Most Compatible” instead of “High Efficiency”

Hey that's smart! Although, I'm using Iris ios app that has uploads baked in 😎

No way! Good to know.

It can be a little janky sometimes, but I imagine it'll get better over time

https://apps.apple.com/au/app/iris-the-nostr-client/id1665849007

🙏🏼

This is awesome! I have got to learn to use Shortcuts more and build my own; reposted and followed!

I created this one to parse out the tracking info from Twitter URLs, give it a go if you still use the blue bird app:

https://www.icloud.com/shortcuts/7740d7dca0084aaaa0a51fa516811f37

Wow thanks 🫂

🫂

It works! 🤯

Testing..

Nice thanks. That will be useful until uploads are available directly within Damus

Cool!

This is great!

Test

Works great! Thanks

Works like lightning. Took me one minute. Thanks!

Nice! 🤙 I thought about doing something similar but never got around to it.

It works really well 👍

Gangster my bru

Worked great, was able to update my profile pic and I’m tech deficient.

Thanks for sharing 🤙🏼

适用于 iOS 可以快速上传图片到 https://nostr.build/ 的快捷指令。

#[0]

cc #[2]

Seems neat!

#[2]​ does this remove metadata like location info and everything?

nostr.build strips metadata automatically for every image uploaded

You’ve tested your shortcut?

Yup. Easy way to upload on iOS and paste in damus

It just sends to nostr.build and gives you the url back so yes

Wow this is much needed. Ty!

You’re welcome!

#[2]

Is there a way to get the files uploaded to my nostr.build user account?

#[3]​ is it possible to pass in additional parameters in the POST query to post them to your user account?

I would have to build it in to accept it. If you send the user’s npub I could connect to their acct, but wouldn’t be able to get to it until after nostrica…

I would love this.

I still don’t know what finch is doing exactly, but somewhere you would have to enter your npub and password, on the iPhone side.

I think it’s possible, but will take some time, few months at least…

DM me after and we can sort it out. Have fun in CR 🤙

Clever! Also - my sons name is Finch 🕺