Skip to content
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

Support gzip-compressed URLs #83

Open
joeriexelmans opened this issue Nov 21, 2024 · 0 comments
Open

Support gzip-compressed URLs #83

joeriexelmans opened this issue Nov 21, 2024 · 0 comments

Comments

@joeriexelmans
Copy link

The URL of a diagram can be made shorter by base64-encoding the gzip'ed diagram.

PlantUML uses this trick. For instance, the diagram part in this URL 1244 characters:

https://plantuml.com/plantuml/uml/rLV1RjD04BtdAqRXqe8IsMaTEov42aK2f4P8zC2nNQytZeLhLyv2GS2_CsExZfEcoJXnZ4YbQXjfvitEllTcshaNygi857JVNL_1L6dHcoQ-YhhmgoCZiLX0zwqIANH1BC0eFZSRVcMVyw6FSNywmbleL4WDHOf97Dw9Y9l4Fi-I5B5J4OFPxm-OmICJWm4UL1ZCDRZmCTOgK2dcwx2GN__kzLWNRJJToEIKXtVhua-lDuQk2Vq-lEposkc2cAKYz3_Di0_bYsDhDhzuqJDgkybhkp7AtwnJpVzvCWrdeVBXMMgzZn9FH9T9x8SwJ68cGOQUojvObd4kJ2GTBZ7_aZc8VrEBUTRCOIUkeGhByzXfYUq6c-t3CsjRPW1AMKfX1NCttQWRFFfY6KscmtunogExbsemk6gWAjoiBPiKKJBsMMbGvACy3BOyR6l0Oi1-Uh35LXRagcHrfjyVympbHHJ6oWrIfU8BhNxe_9XtbZguOE2XAdXuE5GQm2E-yF3GPfl1SzsA_hZOhbi4D503yOw5I_wz6w_KoTM7QzB4dRY7xaAAz6TXixcoyZ-Ot9tb6qEMwauKS6I3p7XbO7obpM_6S1ieVVDTHD_KYPw7YrCOmz2uPNaUfUin-aLbku3rJWeNoU_ihXaBAm_hWKYT-GDvUA_yVUY4LOJnGejOAaHatO-5Hsff1g--2DQLixkEYeDNcEc5KLINJyvWz9HFff7HPr-EEeRSpT5NOF4eIXLoA4geBb0F7ZcA1TScAA6rIHZ4QuCmhEwrUcz3jYkKRB614q_DabH1gXxIKAlJfNPmlHrWBAsvp2rtP2-TdCBDck76CZnGIHfGwMoDMVOPXY_rvHYy7HV3E6AYwbnmI-KqcDXUISnPr32avk9q43NfxgtYOUjgBcg7ufKxrvvBsbR9xSp7NmBm9NB0LFaNTEZxYTPuph3nosmfqNAk_2-XdZUu3z2ZD0vTt_6gRrMhd7NV4pED_y4LjWV68SRddAj3dCknvAfpMQM9ukmsQgLox9LKkBVmLWgCOwqKreQLmgZXYfI01NIkwheYUs1J3SqoUQ_PZMNinsHMyzhqQsfectvTxTmH_7etliETlmtTrx7_c_ba5u19Ak90FQLp_dqBKwhn0fgOLRMAsZwnpDM9LM_NTZnnqCIIPcCJIydz9fPY3X9f7ZYnC04B25jwj8abpQEmUh-v9TVDfU6Yi96jJYzfjklcbVxza-cbMfxMwgZJ-Yy=

While the diagram itself is 7888 characters, a 6.3x reduction in length.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant