Comments (6)
Hi @endroid, file_exists($label->getFont()->getPath()) return true.
from qr-code.
@endroid I'm sorry, i was installed this package to another project and it work well. I think i will uninstall and try again. Thanks!
from qr-code.
Hi @LeQuangKhai99 what version are you using? The current version checks if the path to the font exists (this happens in Label::create) while the imagettfbbox method is called later, when writing the image. So it appears that the font does exist but it can't be opened. Please put a debug statement in the LoadImageData class just before the imagettfbbox method and tell me what $label->getFont()->getPath()
resolves to and what file_exists($label->getFont()->getPath())
resolves to.
from qr-code.
noto_sans.oft is exist
from qr-code.
Thank you. And the output of the path please. And could you try using realpath() around the path, like $labelBox = imagettfbbox(realpath($label->getFont()->getSize()), 0, $label->getFont()->getPath(), $label->getText());
And if that does not work, what does file_get_contents
give? Can it read the file?
from qr-code.
Np, glad to hear your problem is solved!
from qr-code.
Related Issues (20)
- Release Notes for Version 5 HOT 2
- Invalid image in README.md HOT 1
- Specifying QR code models HOT 2
- [Feature Request] PdfWriter sub-millimeter block size
- vcards HOT 1
- Problems using library HOT 1
- Expected type 'Endroid\QrCode\ErrorCorrectionLevel\ErrorCorrectionLevelInterface'. Found 'Endroid\QrCode\ErrorCorrectionLevel\ErrorCorrectionLevelHigh'. HOT 1
- PArameter documentation HOT 2
- Background color and margin for logo HOT 1
- How can I add an image with input type file? HOT 1
- Message: Interface "Endroid\QrCode\QrCodeInterface" not found HOT 1
- Modifying cells of the matrix HOT 3
- how to set the version of a qrcode HOT 1
- Question : how is it possible not displaying the label (for accessibility reasons) ? HOT 2
- Call to undefined method Endroid\QrCode\QrCode::create() HOT 3
- Image embedded in email contains full path to image HOT 2
- Could it be that the readme is outdated? HOT 2
- [Feature Request] SvgWriter with choice of code generation policy - Option to Use Previous SVG Generation Method with <defs> HOT 4
- Version 2+ really slow (xdebug) 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 qr-code.