Comments (4)
This is an issue with your front-end code, not with the package. IE6 might not support your style of image inclusion (for example inline images are not supported in IE6). You will need to save the barcode as a JPG and show that on the page in the normal way, with the JPG file as the source.
from php-barcode-generator.
Thank you for reply.
Nope.
No luck with jpg file as well.
Here is my code,
<br>
<?
function barcodeGeneratortest6(){
$generator = new \Picqer\Barcode\BarcodeGeneratorPNG();
$data = base64_encode($generator->getBarcode("testm567", $generator::TYPE_CODE_128_A, 2, 50));
echo "<img style='width:240px;height:35px' src='data:image/png;base64,".$data."'></img><br />";
}
barcodeGeneratortest6();
?>
<br>
<?
function barcodeGeneratortest7(){
$generator = new \Picqer\Barcode\BarcodeGeneratorJPG();
$data = base64_encode($generator->getBarcode("testm567", $generator::TYPE_CODE_128_A, 2, 50));
echo "<img style='width:240px;height:35px' src='data:image/jpeg;base64,".$data."'></img><br />";
}
barcodeGeneratortest7();
?>
from php-barcode-generator.
I have attached screenshot of IE 6
from php-barcode-generator.
They way you echo it to the browser is not in any way related to this package. This package is only used for the generation of the barcode, which is does well. Please consider asking at a site like Stackoverflow.
from php-barcode-generator.
Related Issues (20)
- Inconsistency in $foregroundColor (string and array) HOT 2
- Inline svg HOT 1
- Not compatible with PHP 73 HOT 1
- thrown in /home/devspedi/public_html/wp-content/themes/additrans/lib/php-barcode-generator/src/BarcodeGenerator.php on line 140 HOT 1
- using FORM as array like name='data[]' HOT 1
- Barcode images not showing in Gmail, tried with PNG and HTML as base64 is not supported HOT 1
- TYPE_EAN_13 Error with 13 numbers HOT 2
- Image not showing when used text and number, but also showing number. HOT 5
- Unable to work with php 8.2 and XAMPP on Windows x64 HOT 1
- PHP 8.2: fix E_DEPRECATED warning HOT 1
- Make $widthFactor to be float HOT 4
- Fatal error: Uncaught Error: Call to undefined function Picqer\Barcode\imagejpeg() HOT 3
- Page autosubmit after scan QR code HOT 2
- Barcode content validation question HOT 2
- Barcodes generated using BarcodeGeneratorDynamicHTML() do not render when printed HOT 1
- Feature Request: Add feature to optionally generate barcodes by width (px) not width factor HOT 18
- Cannot use object of type Picqer\\Barcode\\Barcode as array HOT 1
- Code128 donβt work HOT 2
- No dependencies? HOT 5
- Add background and margin on generated barcode HOT 3
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 php-barcode-generator.