Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Coffee corner » Do we have a QR image generator?
Do we have a QR image generator? [message #57259] Sun, 20 June 2021 09:13 Go to next message
forlano is currently offline  forlano
Messages: 1127
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

I need a very basic text to QR image generator working for mac, linux and windows. I saw an old experiment from Sergey Nikitin but under windows gave me linking problem.

Any suggestion?
Thanks,
Luigi
Re: Do we have a QR image generator? [message #57261 is a reply to message #57259] Sun, 20 June 2021 16:27 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1127
Registered: March 2006
Location: Italy
Senior Contributor
I found this library
https://github.com/nayuki/QR-Code-generator
that produce a svg file (see attached).

Now I am playing without success to convert this file in a png.

Image img = RenderSVGImage( Size(200, 200), LoadFile("C:\\upp\\out\\reference\\CLANGx64.Gui\\qr.svg"));
PNGEncoder png;
png.SaveFile(GetExeDirFile("qr.png"), img);


But I get a small blurred image in the left top side.
Which is the approved way to convert a svg file to a png?

Thanks,
Luigi

  • Attachment: qr.svg
    (Size: 3.59KB, Downloaded 31 times)
Re: Do we have a QR image generator? [message #57334 is a reply to message #57261] Tue, 13 July 2021 19:08 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 746
Registered: January 2008
Location: Moscow, Russia
Contributor

Hello, Luigi. Two years ago I place to forum my library, that prodused U++ Image or PNG image with QR-code
In this lib you can change QR-pixel size, border size, error-correction level ...

I use library https://github.com/fukuchi/libqrencode, that included in linux distribution.

In test program you can show colored elements of QR encoding.

Library written by U++ Draw, so 100%-compatible with U++ applications.

index.php?t=getfile&id=6476&private=0

There are 2 version of package.
1-st: with system installed encoding library -- QrEncode
2-nd: with no needed something install to system with included QR generator algorithm -- QrEncode_loc

Plus. There 2 variant of testing package QrEncode_test and QrEncode_testloc


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}

[Updated on: Tue, 13 July 2021 19:15]

Report message to a moderator

Re: Do we have a QR image generator? [message #57335 is a reply to message #57334] Tue, 13 July 2021 19:22 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 746
Registered: January 2008
Location: Moscow, Russia
Contributor

Here (below) archive of my library.

all 5 directories place at bazaar or examples (or uppsrc)
  • Attachment: QrEncode.zip
    (Size: 1.75MB, Downloaded 22 times)


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: Do we have a QR image generator? [message #57336 is a reply to message #57335] Tue, 13 July 2021 21:29 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 882
Registered: September 2012
Location: Poland, Kraków
Experienced Contributor
Hello Sergey,

It's good to hear that we have such wonderful package! Any chances for UppHub port? It would be great addition for all Upp users and there will be no need to publish newer version of package on the forum thread.

In case of help you could ask me or Oblivion.

Klugier


Ultimate++ - one framework to rule them all.

[Updated on: Tue, 13 July 2021 21:29]

Report message to a moderator

Re: Do we have a QR image generator? [message #57337 is a reply to message #57336] Tue, 13 July 2021 23:03 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 746
Registered: January 2008
Location: Moscow, Russia
Contributor

That would be great! Do I need to get a username and password somehow???

SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: Do we have a QR image generator? [message #57338 is a reply to message #57337] Tue, 13 July 2021 23:15 Go to previous messageGo to next message
Oblivion is currently offline  Oblivion
Messages: 928
Registered: August 2007
Experienced Contributor
Hello Sergey,

You will need to set up a git repo (e.g. on github, etc.) with a certain directory structure: See the UppHub module developer perspective section

So yes, you'll need a username/password, if you don't already have one.

Setting up a upphub repo is trivial.though.

An example repo structure.


Once you set up your development repo, we'll take care of the rest and add it to UppHub.

If you have any more questions or need help, let us know.


Best regards,
Oblivion


[Updated on: Tue, 13 July 2021 23:20]

Report message to a moderator

Re: Do we have a QR image generator? [message #57362 is a reply to message #57335] Mon, 19 July 2021 21:06 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1127
Registered: March 2006
Location: Italy
Senior Contributor
sergeynikitin wrote on Tue, 13 July 2021 19:22
Here (below) archive of my library.

all 5 directories place at bazaar or examples (or uppsrc)


Prevet Sergey!

I'll try again your package. I hope to not met the compilation issue I got the last time under windows.

Best regards,
Luigi
Re: Do we have a QR image generator? [message #57383 is a reply to message #57362] Tue, 27 July 2021 16:02 Go to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 746
Registered: January 2008
Location: Moscow, Russia
Contributor

Try QrEncode_loc

SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Previous Topic: important note when a strange compilation error occurs
Next Topic: The serial number is getting smaller.
Goto Forum:
  


Current Time: Tue Oct 19 21:15:54 CEST 2021

Total time taken to generate the page: 0.01554 seconds