Commit ba9d231b by sn

@qrcode font rausgenommen @author neumann@netz.coop

1 parent cdcb8628
<?php <?php
/**
* REQUIRE:
* * apt-get install php5-imagick
* * .htaccess -> _htaccess
* * Apache rewrite Modul
*
* links zum drauf zugreifen:
* * http://localhost/service/qrcode/?qrcode=test
* * http://localhost/service/qrcode/a:3:%7Bi:0;s:17:%22www.quaink.de/qr/%22;i:1;s:6:%22test_2%22;i:2;s:6:%22test_2%22;}
*
*/
require_once('basepath.inc.php'); require_once('basepath.inc.php');
require_once($__PATH_to_mcClasses . 'include.php'); require_once($__PATH_to_mcClasses . 'include.php');
...@@ -54,7 +66,10 @@ if(array_key_exists('qrcode', $_GET) && $_GET['qrcode']) { ...@@ -54,7 +66,10 @@ if(array_key_exists('qrcode', $_GET) && $_GET['qrcode']) {
$draw = new ImagickDraw(); $draw = new ImagickDraw();
$draw->setFillColor('black'); $draw->setFillColor('black');
$draw->setFont($font_type); /**
* Achtung, Probleme kann es geben wenn die Fonts nicht installiert sind
*/
// $draw->setFont($font_type);
$draw->setFontSize( $font_size ); $draw->setFontSize( $font_size );
$text_image = new Imagick(); $text_image = new Imagick();
......

594 Bytes | W: | H:

587 Bytes | W: | H:

service/qrcode/tmp/tmp_qrfile.png
service/qrcode/tmp/tmp_qrfile.png
service/qrcode/tmp/tmp_qrfile.png
service/qrcode/tmp/tmp_qrfile.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!