r/iOSProgramming • • Oct 22 '24

Question Shortcut / creating QR code for photos

Post image

Heeellpp!

I am no expert on any encoding or whatsoever it is! 😂

I am trying to generate a QR code from a photo.

So tried to google and youtube but nothing, no tutorial 😭

So I made it to generate a code but whenever I scan the QR it proceeds to url error.

So what am I gonna do?? 😭

0 Upvotes

17 comments sorted by

8

u/webtechmonkey Swift Oct 22 '24

This isn’t quite the subreddit for this type of thing.

But perhaps I can help a bit.

To confirm, you are trying to create a QR code with a link/url to a photo?

Without getting too technical, there’s no “simple” way to directly convert an image to a QR code. For the nerds reading this, technically you could convert to base 64 first then encode it within a QR code, but I don’t think that’s what Op wants

3

u/_CrazyFairy007 Oct 22 '24

Ohh sorry wrong place! 😅

Ahmm well I am trying to have a qr code directly from phone album photos.

What im trying to happen is; So if the qr is scanned, the photo should pop up 😂

Yeah I sound so crazy

5

u/[deleted] Oct 22 '24 edited Oct 31 '24

pathetic tan mindless ad hoc important tub retire gold follow jeans

This post was mass deleted and anonymized with Redact

4

u/conro Oct 22 '24 edited Oct 22 '24

What you’d want to do is

  • Select photo

  • Upload photo to some photo sharing site (iCloud, Imgur, not totally sure what options there are that support shortcuts)

  • Get url for uploaded image

  • Create QR code of url

  • share QR code

Then someone else can scan the QR code and open it will open the image in safari - assuming that’s what you’re going for.

1

u/kilgoreandy Oct 22 '24

I have an api that generates urls in qrcode format .

http://justagenericapp.com/qrgenerator?url=justagenericapp.com

Change url to whatever and it will return an image. Welcome to use it in your shortcut.

Not sure if it would work for app shortcuts for iOS or not.

2

u/lovesToClap Oct 22 '24

There’s r/shortcuts that can help a lot with this

1

u/_CrazyFairy007 Oct 22 '24

Thanks biggie for the right place!

1

u/Oxigenic Oct 23 '24

I got one for you, make a shortcut that takes a screenshot so you can stop living in 1995 :)

1

u/_CrazyFairy007 Oct 26 '24

You totally lost me 😅 not a techie here nor a fan of researching 🤭

1

u/Oxigenic Oct 27 '24

Research is mundane but how else can you learn new things?

1

u/No_Estimate385 Oct 23 '24

just curious: why would you want to share image using QR?

1

u/_CrazyFairy007 Oct 24 '24

Everything in webpage is a paid site or have to register. Not an option for me or will end end getting spam msgs on mail. I made images for multiple QR codes for receiving payment options. So this is now in jpeg/png form.

Since the client wanted to put 1 QR code on his business card wherein the multiple payments options are in there.

1

u/xhruso00 Oct 22 '24

Isn't it because the QR code points to the local disk and when you scan it with phone you cannot access the computer disk? If it's this easy -> your computer would have been hacked 300x.

Show us the QR code

1

u/dominik9876 Oct 22 '24

A hell of a QR code 😂

1

u/NazarJailbreaker15 Beginner Oct 22 '24

You can use "Upload to Dropbox" action to upload image to the web, get it's URL and then generate QR code from that URL.