summaryrefslogtreecommitdiff
path: root/core
AgeCommit message (Collapse)AuthorFilesLines
6 daysAdd ERRORS_CORRECTED metadata to QRCodeMultiReader (#2044)HEADmasterMiztan1-0/+1
2025-11-11[maven-release-plugin] prepare for next development iterationSean Owen1-2/+2
2025-11-11[maven-release-plugin] prepare release zxing-3.5.4zxing-3.5.4Sean Owen1-1/+1
2025-11-11Restore 3.5.4-SNAPSHOTSean Owen1-1/+1
2025-11-11[maven-release-plugin] prepare release zxing-3.5.4Sean Owen1-2/+2
2025-11-11[maven-release-plugin] rollback the release of zxing-3.5.4Sean Owen1-2/+2
2025-11-11[maven-release-plugin] prepare for next development iterationSean Owen1-2/+2
2025-11-11[maven-release-plugin] prepare release zxing-3.5.4Sean Owen1-2/+2
2025-11-11[maven-release-plugin] rollback the release of zxing-3.5.4Sean Owen1-2/+2
2025-11-11[maven-release-plugin] prepare release zxing-3.5.4Sean Owen1-2/+2
2025-11-11Loosen ITF max variance for 3x module widths (#2014)Daniel Gredler4-6/+9
2025-11-11Add GrayscaleLuminanceSource (#2013)Daniel Gredler3-120/+276
2025-11-10Add 90-degree rotation support to RGBLuminanceSource (#2012)Daniel Gredler2-1/+71
2025-07-23Add input validation for pixel array length in RGBLuminanceSource and add ↵Leo Fernandes2-0/+18
test case for regression (#1961)
2025-02-10Comment on distortion calculation for isosceles right triangles (#1908)magethle1-0/+2
* Fix distortion calculation for isosceles right triangles * Revert "Fix distortion calculation for isosceles right triangles" This reverts commit 4a8ad9a5bea9d0be251450f9e0db15b16e85e1ac. * Add comment to distortion calculation The formula for calculating the distortion seems wrong but practically it seems to work slightly better
2025-02-04Add hint to correct wrong dimension (#1901)magethle1-1/+2
* Add hint to correct wrong dimension Fix issue #1900 * Revert "Add hint to correct wrong dimension" This reverts commit 16723b3434a78ab49894f611cfb57c3e712b9b97. * Correct wrong dimension to lower value Fix issue #1900 * Cleanup code --------- Co-authored-by: Matthias Agethle <matthias.agethle@elca.ch>
2024-11-17Fixing issue #1831 (#1879)François Tiercelin2-4/+57
* throw a more explicit exception when trying to PDF417/TEXT encode something outside of 0...255 * refactor PDF417HighLevelEncoder to avoid code duplication extend UT to new method PDF417HighLevelEncoder#checkCharset * fix javadoc typo make UT more stringent on PDF417HighLevelEncoder#checkCharset * restrict TEXT to 0...127 test with CP437 and Greek chars * reinstate testEncodeAuto UT * refactor testEncodeAuto UT * address codacy findings * formatting * fix issue #1831 make PDF417#determineDimensions to enable finer UT add UT coverage to validate fix for #1831 * fix javadoc for PDF417#determineDimensions remove stacktrace when UT fails * make UT Java 8 compliant
2024-10-22PDF417: Check that input is made of 0...127 chars when using ↵François Tiercelin2-13/+116
Compaction.TEXT, throw an explicit exception if not the case (#1878) * throw a more explicit exception when trying to PDF417/TEXT encode something outside of 0...255 * refactor PDF417HighLevelEncoder to avoid code duplication extend UT to new method PDF417HighLevelEncoder#checkCharset * fix javadoc typo make UT more stringent on PDF417HighLevelEncoder#checkCharset * restrict TEXT to 0...127 test with CP437 and Greek chars * reinstate testEncodeAuto UT * refactor testEncodeAuto UT * address codacy findings * formatting
2024-10-19Be more stringent on email validation rules (#1870)François Tiercelin3-4/+32
* be more stringent on email validation rules add UT to validate various email formats * fix indentation * fix failing UT case * refine regex for email's domain: * only letters in the last part * no part starting or ending with a - (- allowed inside the part) add UT to cover such cases
2024-08-02Fix SYMBOLOGY_IDENTIFIER loss in QRCodeMultiReader (#1839)xiebaiyuan1-0/+3
2024-05-02Promote renderResult method to public (#1801)cdcarloschacon2-4/+75
This small commit makes public the "renderResult" method of the "QRCodeWriter" class. The reason to promote this method as public is that I'm facing Business Case where, besides of generating the QR code as a PNG image, I also need to print information about the QR code itself (specifically, the QR version). Navigating through the code of zxing library, I noticed that the com.google.zxing.qrcode.encoder.Encoder allows me to have that (the QR metadata); however, by invoking that class I only have part of the equation (the QRCode DTO) ... I'm still needing to generate the BitMatrix in order to produce the QR image. Here, I have two alternatives: either I invoke the Encoder.encode class by myself and repeat the same logic when invoking the QRCodeWriter.encode method; or I make the renderResult Public, call the Encoder.encode and then I proceed to call the QRCodeWriter.renderResult method with the previous result.
2024-04-02fix container inefficiency in RSSExpandedReader.java (#1782)cinsttool1-8/+7
2024-01-31[maven-release-plugin] prepare for next development iterationSean Owen1-2/+2
2024-01-31[maven-release-plugin] prepare release zxing-3.5.3zxing-3.5.3Sean Owen1-2/+2
2024-01-17Support for platforms where SJIS is unavailable (#1747)Blake3-15/+50
* Add support for embedded JREs where SJIS isn't available (cherry picked from commit 67896f97042f5a9772f0ebcfdbb91f275d86e087) * Add support for embedded JREs where EUC_JP isn't available (cherry picked from commit 979d3b648982b151b7a1e779e58d445086911b31)
2023-09-16Avoid decoding stacked row 1 of N independently (#1693)Daniel Gredler4-9/+9
* Avoid decoding stacked row 1 of N independently * Avoid decoding stacked row 1 of N independently
2023-09-15Avoid 2 more RSS Expanded finder pattern false positive scenarios (#1692)Daniel Gredler6-10/+33
2023-09-04Update GS1 AIs according to 2023 specification (#1681)Daniel Gredler1-9/+77
2023-09-04Detect RSS Expanded finder pattern false positives by checking sequences (#1680)Daniel Gredler5-6/+56
2023-08-17Possible fix for obscure corner case in ↵Sean Owen1-0/+3
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=37868
2023-08-17Removing the forced content limit check for Code128Writer.java (#1675)Himanshu Shukla1-7/+1
* Update Code128Writer.java Removing the force content limit check as per https://github.com/zxing/zxing/issues/1672 * Update Code128Writer.java
2023-07-30Fix MaxiCode handling of vertical quiet zone (#1671)Daniel Gredler5-40/+3
2023-07-30[maven-release-plugin] prepare for next development iterationSean Owen1-2/+2
2023-07-30[maven-release-plugin] prepare release zxing-3.5.2zxing-3.5.2Sean Owen1-2/+2
2023-07-30[maven-release-plugin] rollback the release of zxing-3.5.2Sean Owen1-2/+2
2023-07-30[maven-release-plugin] prepare for next development iterationSean Owen1-2/+2
2023-07-30[maven-release-plugin] prepare release zxing-3.5.2Sean Owen1-2/+2
2023-07-30[maven-release-plugin] rollback the release of zxing-3.5.2Sean Owen1-2/+2
2023-07-30[maven-release-plugin] prepare for next development iterationSean Owen1-2/+2
2023-07-30[maven-release-plugin] prepare release zxing-3.5.2Sean Owen1-2/+2
2023-06-26Add ResultMetadataType.ERRORS_CORRECTED and ERASURES_CORRECTED (#1657)Daniel Gredler41-53/+179
* Add ResultMetadataType.ERRORS_CORRECTED and ERASURES_CORRECTED (2D barcodes) * Maintain existing constructor on AztecDetectorResult * Maintain existing ReedSolomonDecoder.decode method
2023-06-24Make OneDimensionalCodeWriter.encode(content, hints) public (#1659)primo-ppcg2-2/+2
This method is useful for encoding Code128 with a specific code set to a bool array. As no other class overrides this method, this change only affects Code128Writer. I don't know that there's a strong argument against making this method public. With this method protected, it is necessary to first encode as a BitMatrix, extract the first row, and the convert the resulting BitArray to a bool array. This all can be avoided if the method is made public.
2023-06-24Allow space in Code128 CodeSet B (#1658)primo-ppcg1-1/+1
Space is a valid character in CodeSet B.
2023-05-29Use barcode-specific min height when searching for stop pattern (fixes ↵Daniel Gredler4-8/+17
#1641) (#1642)
2023-05-23Reduce PDF417 variance leniency (fixes #1624) (#1628)Daniel Gredler4-6/+7
2023-05-23Enable supported ECI charsets dynamically (#1625)Daniel Gredler2-12/+15
* Enable supported ECI charsets dynamically * Remove use of Java 9+ API * Remove property-based override for dynamic ECI charsets
2023-04-25Regular plugin updatesSean Owen1-1/+1
2023-04-05Clarify that the size of the GF is a power of two (#1612)Frederik van der Els1-9/+10
2023-03-23fix: 1358 - rolled back to old-fashioned Collections.sort for android 23 (#1595)monsieurtanuki1-1/+5
cf. https://developer.android.com/reference/java/util/List#sort(java.util.Comparator%3C?%20super%20E%3E), "added in API level 24"
2022-11-02[maven-release-plugin] prepare for next development iterationSean Owen1-2/+2