Comments (5)
Please set header to png or jpg
On Apr 7, 2015 8:50 PM, "LOFer" [email protected] wrote:
Hi
I can't seem to see how I can display a QR code generated on the fly
within a page including other data (form data, images etc). I don't really
want to create a file and pull it in as an image if I can help it but
simply running the qrcode to generate one on the fly I get"�PNG IHDRddJ,PLTE���U��~ pHYs���+�IDAT8���� �0�n����&N������!�Z /I\�[�z
�}J$�z�E}?ȏ��0����O�f����̤:��� +�_ $��d"�!��0����;�������ݙ:��sW=W�Ύ4SO��"as opposed to the qr code.
I am sure it's something I am doing wrong, something very simple......
—
Reply to this email directly or view it on GitHub
#10.
from codeigniter-php-qr-code.
I tried directly generating the QR Code alon with other data and it did not work.
I used this instead.
$this->load->library('ciqrcode');
$params['data'] = 'This is a text to encode become QR Code';
$params['level'] = 'H';
$params['size'] = 10;
$params['savename'] = FCPATH.'tes.png';
$this->ciqrcode->generate($params);
echo '< img src="'....'tes.png" / >';
placing the tag along with the data
from codeigniter-php-qr-code.
May you show the error?
from codeigniter-php-qr-code.
What I meant is, I solved the problem by adding the code
$this->load->library('ciqrcode');
$params['data'] = 'This is a text to encode become QR Code';
$params['level'] = 'H';
$params['size'] = 10;
$params['savename'] = FCPATH.'tes.png';
$this->ciqrcode->generate($params);
above within saving a record controller . This will generate the qr code per record.
Then it is a matter of getting the image link and placing the in img tag.
I can place now the img tag along with other data.
from codeigniter-php-qr-code.
Oh okay, glad to hear that... :)
On Nov 29, 2015 7:46 PM, "francisalfanta" [email protected] wrote:
What I meant is, I solved the problem by adding the code
$this->load->library('ciqrcode');$params['data'] = 'This is a text to encode become QR Code';
$params['level'] = 'H';
$params['size'] = 10;
$params['savename'] = FCPATH.'tes.png';
$this->ciqrcode->generate($params);above within saving a record controller . This will generate the qr code
per record.
Then it is a matter of getting the image link and placing the in img tag.I can place now the img tag along with other data.
—
Reply to this email directly or view it on GitHub
#10 (comment)
.
from codeigniter-php-qr-code.
Related Issues (20)
- How to add url to qrcode ? HOT 2
- Fatal error: Call to undefined function ImageCreate() in HOT 1
- Unable to load the requested class: Ciqrcode in Live server HOT 1
- Scan QR CODE
- Cannot read carachter "+"
- Cannot redeclare class Qrcode
- QRcode unable load class HOT 1
- Text Below qr code
- Add logo to the middle of qr code? HOT 10
- How to QR CODE + SQL
- Code working in localhost but in live it has errors via hostinger. HOT 4
- Not an issue, just a request, can you make it composer package?
- QR CODE CONTENT SIZE
- how to create qr code without save the file?
- Codeigniter4
- save qr image to sub directory HOT 1
- Customizable QR Code.
- How to reduce white edges?
- Transparent Colour
- Add Label
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codeigniter-php-qr-code.