Resolver v3.0 and GS1 Digital Link Compression (from v3.0 beta 3) #95
nicklansley
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Compressing GS1 Digital Link URLs
Resolver CE v3.0 (from beta 3) now supports compressed GS1 Digital Link URLs - and you can use Resolver to find out the compressed version of an uncompressed GS1 Digital Link URL.
A new API call retrieves the compressed version of a GS1 Digital Link URL. Unlike other API requests, this is not part of
the
/api
endpoint but rather a direct call to the resolving frontend with a query stringcompress=true
.Request Example:
https://example.com/01/05392000229648/10/LOT01/21/SERIAL01?compress=true
Response:
You can then use this new link by appending it to the domain name:
https://servername.com/AQnO2IRCICDKWcnpqQtCQiJABemo
Let's compare the two lengths:
The compression used here is a non-lossy, specialist algorithm conforming to the GS1 Digital Link standard. It has variable success in reducing the length of URLs containing identifiers (and qualifiers).
Implementation Details:
QR Code Storage Considerations
While compressing URLs can simplify their representation, it may not always yield a shorter string suitable for QR Code storage. This is because QR Codes use Unicode characters as storage, which assign varying numbers of digital bits to distinctive character types:
As a result, it's possible that a QR Code with a shorter compressed GS1 Digital Link URL could actually require more storage bits than a numeric-only GS1 Digital Link URL. This increased bit count can lead to a more complex QR Code pattern, which in turn may need to be printed:
To mitigate this effect, try experimenting with different formatting options. For example, see how much simpler a QR Code is when you use uppercase characters for the domain of the URL:
HTTPS://EXAMPLE.COM
. This should still work and provide valuable insights into optimising your QR Code design.Beta Was this translation helpful? Give feedback.
All reactions