Giter Site home page Giter Site logo

Comments (5)

dwisetiyadi avatar dwisetiyadi commented on August 9, 2024

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.

francisalfanta avatar francisalfanta commented on August 9, 2024

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.

dwisetiyadi avatar dwisetiyadi commented on August 9, 2024

May you show the error?

from codeigniter-php-qr-code.

francisalfanta avatar francisalfanta commented on August 9, 2024

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.

dwisetiyadi avatar dwisetiyadi commented on August 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.