Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

QR-Code with Logo (image inside)

 
Chris Ernst
Greenhorn
Posts: 29
MySQL Database Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey folks,

as the titel it says, I want to generate a QR Code with a logo from a png file or what ever image file in the center.
Did anybody do this or have some idea how it works?
I use currently PrimeFaces 5.3 to generate my QR-Code...

cheers

Chris
 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spelling tip: English is "title", not "Titel". Unless you type as badly as I do, then who knows what order the letters will come out in? Oh, well, it's "centre" in UK and "center" in US, so logic isn't our strong point.

I'm not totally sure I understood the question, but it appears that the Primefaces supports a QR code with embedded image using the "image strip" or "image box" options but only if you use canvas rendering. Anything fancier and you'd probably have to either generate the QR code on the server as an image and use server-side logic to merge with whatever bitmap graphics you'd want. Or, alternatively, maybe do some z-axis stacking with CSS on the client side.

And while I'm being all pedantic, JSF backing bean classes are NOT Controllers, no matter what PrimeFaces and NetBeans may say. They are Models. In JSF, the Controllers are part of the bean tag processors (and the FacesServlet). You don't write your own Controllers, only Models and Views.
 
Chris Ernst
Greenhorn
Posts: 29
MySQL Database Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ohhh shit :(

Iam sorry, its a long time ago that I have to write in englisch and with the large letters at the beginning of a word igrnore it ;) its german sickness :D

The second is, we learnd Oxford englisch and there is a large mix betwin UK and US englisch so....

But i wan't to explain new my question:

I want to create a QR-Code like this but with my own logo inside


can I resolve this with JSF or Java as well?

hope this time it was a bit better ;)

cheers

Chris
 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that would be possible using the "image box" option on a canvas.

The main thing, of course, is not to have the logo damage any of the data elements by overlaying them.
 
Chris Ernst
Greenhorn
Posts: 29
MySQL Database Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Haha i didn't used it yet but i'll test it today



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!