Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
TristanJo
Experienced
Topic Author
Posts: 116
Joined: 10 Apr 2018, 02:57

Generating QR codes

21 Oct 2022, 08:52

Generating QR codes for downloading pictures

Is there a way to download a picture to a mobile device if I take a QR code with a mobile device instead of a download button?

Please give me a hint.^^
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Generating QR codes

21 Oct 2022, 11:10

This is probably not super easy. There are some PHP QR code libraries, but it would take some effort to implement.
medium.com/ampersand-academy/generate-qr-code-using-php-b4d13a9ed8dd
https://github.com/chillerlan/php-qrcode

There are also some 3rd party API's, which would probably be much easier. You will still need to configure requests for QR images, and display the returned QR code somewhere.
https://www.qrcode-monkey.com/qr-code-api-with-logo/
https://www.qr-code-generator.com/qr-code-api/
https://goqr.me/api/
 
User avatar
TristanJo
Experienced
Topic Author
Posts: 116
Joined: 10 Apr 2018, 02:57

Re: Generating QR codes

21 Oct 2022, 21:29

mjau-mjau wrote: This is probably not super easy. There are some PHP QR code libraries, but it would take some effort to implement.
medium.com/ampersand-academy/generate-qr-code-using-php-b4d13a9ed8dd
https://github.com/chillerlan/php-qrcode

There are also some 3rd party API's, which would probably be much easier. You will still need to configure requests for QR images, and display the returned QR code somewhere.
https://www.qrcode-monkey.com/qr-code-api-with-logo/
https://www.qr-code-generator.com/qr-code-api/
https://goqr.me/api/
Hi ~ Karl~

What would be the estimate if I requested this work?:handshake:
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Generating QR codes

22 Oct 2022, 02:05

TristanJo wrote:What would be the estimate if I requested this work?:handshake:
I could perhaps do this for $100.00 if we can use an external QR code API. Where should the QR codes display?
 
User avatar
TristanJo
Experienced
Topic Author
Posts: 116
Joined: 10 Apr 2018, 02:57

Re: Generating QR codes

22 Oct 2022, 11:20

mjau-mjau wrote:
TristanJo wrote: 이 작업을 요청하면 견적이 얼마가 될까요?:악수:
외부 QR 코드 API를 사용할 수 있다면 $100.00에 이 작업을 수행할 수 있습니다. QR 코드는 어디에 표시되어야 합니까?
Like this~
IMG_91991.jpg
IMG_91991.jpg (929.2 KiB) Viewed 2111 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Generating QR codes

23 Oct 2022, 01:23

TristanJo wrote:Like this~
Is that from inside the X3 popup? I'm pretty sure it can be done, and maybe it's not too difficult if we can use an external QR code service. I can change price to $50.00, as long as it's not more complicated than I think.
 
User avatar
TristanJo
Experienced
Topic Author
Posts: 116
Joined: 10 Apr 2018, 02:57

Re: Generating QR codes

24 Oct 2022, 11:49

mjau-mjau wrote:
TristanJo wrote:Like this~
Is that from inside the X3 popup? I'm pretty sure it can be done, and maybe it's not too difficult if we can use an external QR code service. I can change price to $50.00, as long as it's not more complicated than I think.
Yes, I'd like to make a request.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Generating QR codes

24 Oct 2022, 23:28

TristanJo wrote:Yes, I'd like to make a request.
I'll look into it later today and get back to you ...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Generating QR codes

25 Oct 2022, 05:40

Ok, I did some more tests with the external QR API, and it should work fine. The below API request, creates a QR code for an image on our website: https://api.qrserver.com/v1/create-qr-c ... rctica.jpg

Image

The only problem, you can't force the browser to DOWNLOAD the image from the QR code. By default, it will simply open the image in a browser window. If you want to force download of the image, we need to create a download.php script on your server, and use it something like this:
Code
yourserver/download.php?galleries/landscapes/antarctica.jpg
The QR request when then need to point to the download.php script.

Since all this is a fair bit of work, I would have to charge $100.00 for everything.
 
User avatar
TristanJo
Experienced
Topic Author
Posts: 116
Joined: 10 Apr 2018, 02:57

Re: Generating QR codes

26 Oct 2022, 07:41

mjau-mjau wrote: 외부 QR API로 몇 가지 더 테스트를 해보니 잘 작동할 것입니다. 아래 API 요청은 당사 웹사이트  의 이미지 에 대한 QR 코드를 생성합니다. https://api.qrserver.com/v1/create-qr-c ... to.gallery /content/galleries/landscapes/antarctica.jpg

Image

유일한 문제는 브라우저가 QR 코드에서 이미지를 다운로드하도록 강제할 수 없다는 것입니다. 기본적으로 단순히 브라우저 창에서 이미지를 엽니다. 이미지를 강제로 다운로드하려면 서버에 download.php 스크립트를 생성하고 다음과 같이 사용해야 합니다 . QR 요청은 download.php 스크립트를 가리켜야 할 때 필요합니다. 이 모든 것이 상당한 작업이기 때문에 모든 비용에 대해 $100.00를 청구해야 합니다.
Code
yourserver/download.php?galleries/landscapes/antarctica.jpg

wow~~~~~ good~~
 
User avatar
TristanJo
Experienced
Topic Author
Posts: 116
Joined: 10 Apr 2018, 02:57

Re: Generating QR codes

02 Nov 2022, 00:41

TristanJo wrote:
mjau-mjau wrote: 외부 QR API로 몇 가지 더 테스트를 해보니 잘 작동할 것입니다. 아래 API 요청은 당사 웹사이트  의 이미지 에 대한 QR 코드를 생성합니다. https://api.qrserver.com/v1/create-qr-c ... to.gallery /content/galleries/landscapes/antarctica.jpg

Image

유일한 문제는 브라우저가 QR 코드에서 이미지를 다운로드하도록 강제할 수 없다는 것입니다. 기본적으로 단순히 브라우저 창에서 이미지를 엽니다. 이미지를 강제로 다운로드하려면 서버에 download.php 스크립트를 생성하고 다음과 같이 사용해야 합니다 . QR 요청은 download.php 스크립트를 가리켜야 할 때 필요합니다. 이 모든 것이 상당한 작업이기 때문에 모든 비용에 대해 $100.00를 청구해야 합니다.
Code
yourserver/download.php?galleries/landscapes/antarctica.jpg

wow~~~~~ good~~
Hi, Karl~

Please proceed with this work.

wenoi[AT]naver.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Generating QR codes

02 Nov 2022, 01:56

TristanJo wrote:Please proceed with this work.
Ok, I will look into it later today.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Generating QR codes

02 Nov 2022, 12:38

TristanJo wrote:wenoi[AT]naver.com
See email!