Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ncphp
/
mcClasses
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ba9d231b
authored
Dec 19, 2011
by
sn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
@qrcode font rausgenommen @author neumann@netz.coop
1 parent
cdcb8628
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
service/qrcode/index.php
service/qrcode/tmp/tmp_qrfile.png
service/qrcode/index.php
View file @
ba9d231
<?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
();
...
...
service/qrcode/tmp/tmp_qrfile.png
View file @
ba9d231
594 Bytes
|
W:
|
H:
587 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment