Jump to content

Eight Digit SVG Hex Values Incorrectly Read By Affinity Apps


Recommended Posts

While I appreciate the Affinity apps don't support CSS Level 4 specification 8-digit Hex codes, SVG files containing an 8-digit Hex code can still be opened but in doing so the Hex Codes are incorrectly read i.e., instead of reading the first six characters of the eight digit HEX code and ignoring the transparency values, i.e. the last two digits of the Hex Code, Affinity apps read the last six digits when the SVG is opened...

This results in the following where the final two characters represent the alpha value:

#FF000000 (red with 0% alpha) opens as #000000 (black)
#FF000080 (red with 50% alpha) opens as #000080 (dark blue)

#00FF0000 (green with 0% alpha) opens as #FF0000 (red)
#00FF0080 (green with 50% alpha) opens as #FF0080 (magenta)

#0000FF00 (blue with 0% alpha) opens as #00FF00 (green)
#0000FF80 (blue with 50% alpha) opens as #00FF80 (light green)

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Link to comment
Share on other sites

12 minutes ago, Hangman said:

#0000FF80 (blue with 50% alpha) opens as #000000 (light green)

Typo alert! #0000FF80 (blue with 50% alpha) opens as #00FF80 (light green)

Alfred spacer.png
Affinity Designer/Photo/Publisher 2 for Windows • Windows 10 Home/Pro
Affinity Designer/Photo/Publisher 2 for iPad • iPadOS 17.5.1 (iPad 7th gen)

Link to comment
Share on other sites

8 minutes ago, Alfred said:

Typo alert! #0000FF80 (blue with 50% alpha) opens as #00FF80 (light green)

That'll teach me to copy and paste... :) Post amended, thanks for picking that up...

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Link to comment
Share on other sites

Thanks @MEB, much appreciated... :)
 

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
MacBook Pro M3 Max, 36 GB Unified Memory, macOS Sonoma 14.6.1, Magic Mouse
HP ENVY x360, 8 GB RAM, AMD Ryzen 5 2500U, Windows 10 Home, Logitech Mouse

Link to comment
Share on other sites

  • 2 weeks later...
  • Staff

The issue "Eight digit SVG hex values not being parsed correctly" (REF: AF-2152) has been fixed by the developers in internal build "2.5.0.2317".
This fix should soon be available as a customer beta and is planned for inclusion in the next customer release.
Customer beta builds are announced here and you can participate by following these instructions.
If you still experience this problem once you are using that build version (or later) please reply to this thread including @Affinity Info Bot to notify us.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.