-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML to honor nearest-neighbor #57
Comments
A stop-gap for better HTML barcodes is a library such as |
+1 |
do you have any estimation of how long this ticket will be resolved @tresf? |
@vinhlh this is currently being tested on the Compilation/packaging is dead-easy on Linux and Mac (Windows requires a few extra steps): https://qz.io/wiki/compiling If you have some time to test the If you do not have an environment suitable for building, ping us at support@qz.io and we'll fire over an installer. |
Yep, I had the same problem with you on Mac OS environment on But in my cases, all texts are also blurry |
I had forgotten to mention, you'll have to turn rasterize off on 2.1. |
Edit: Seems much better in 2.1 #57 (comment)
|
Ok, update.... If I use jquery_barcode, the barcode looks really good. Attached is 2.1 printing to a Zebra LP2844 on OS X 10.11 El Capitan using HTML. Sample code here: jquery_barcode.zip Note, I had to set Also note, I am sporadically getting blank pages HTML printing on Mac with 2.1. This appears to be a bug with the 2.1 branch. @bberenz FYI. |
@tresf |
@vinhlh yes, there is. This was only meant to illustrate the print quality, not layout accuracy of the JavaFX engine. |
@vinhlh here's a better example. Apparently JavaFX was zoomed out too much causing some strange rendering with the divs. This one does't need the special 4x6 dimensions. Note, this is still printing sporadically with 2.1 on Mac, something we need to investigate. |
Image quality is an upstream enhancement and a gap in JavaFX, so we can't fix it. In regards to overall HTML print quality, closed via 9f47456 (2.1 branch) |
@tresf using scaling WebView (instead of setZoom != 1.0) solves my barcode accuracy's problem.
|
2.0 or 2.1? Can you elaborate a bit more? |
2.1, when using jquery barcode with width = 1px, just make sure that don't use setZoom < 1.0. this will create the barcode accuracy's problem. |
@vinhlh opening a new issue for this, thanks. |
HTML rendering currently blurs all images as they are scaled up. This seems to be an effect of the default scaling that JavaFX
WebView
uses.A current work-around is to use a library such as
ImageMagic
orgd
to scale the image up prior to embedding it into the HTML document.Here's an example of
sample.html
's printHTML() code, modified to use an up-scaled version of theassets/img/image_sample.png
, and then hard-coding the dimensions.The text was updated successfully, but these errors were encountered: