Jump to content

Color Dodge returns different result between Fill layers and Pixel layers


Recommended Posts

I tested some code implementing color blends matching Photoshop and AP I found an inconsistency in AP for Color Dodge.

If you have two Fill layers, one pure red (255,0,0) and one black (0,0,0) and use Color Dodge, you get pure red as per the math.

If you have two Pixel layers, one pure red (255,0,0) and one black (0,0,0) and use Color Dodge, you get pure black which is wrong.

I have a document that shows this issue, but for some reason, the Upload Files fails on the AP document (error 200).

Mac OS 13.4.1 (c) (22F770820d) AP 2.1.1 on an M1 Ultra Mac Studio

 

color dodge bug.afphoto

Device: Apple M1 Ultra 64GB Ventura 13.0.1 Apple Studio Display

- Andrew

Link to comment
Share on other sites

  • Staff

Hi Florida,

Unfortunately I can't seem to download the file you attached to this post please could you try re-uploading it?

Thanks
C

Please tag me using @ in your reply so I can be sure to respond ASAP.

Link to comment
Share on other sites

Big difference here on Mac OS 11.7 with the Red Layer being 254 versus 255 and set to Colour Dodge and above the Black Layer.

At 255

ScreenShot2023-07-13at8_44_37AM.png.c10871a619b3328153c78f2cf4a6b95e.png

At 254

ScreenShot2023-07-13at8_44_54AM.png.5d4c113e060c0f6cb8fdc016cae20325.png

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

For me, with the file you uploaded, in the v2.2.0 Beta, I see Red...

image.thumb.png.d3a13f179fdb0c8f0e3b4d83f3bfcc70.png

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
Affinity Designer Beta 2.6.0.2861 | Affinity Photo Beta 2.6.0.2861 | Affinity Publisher Beta 2.6.0.2861

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

Maybe they fixed it. Note I found this result on an M1 Ultra on the latest MacOS, so maybe it's a hardware-or-OS-dependent bug. In my test case (a wide variety of red shades) every one matched my result except this 255 vs 0 case.

Device: Apple M1 Ultra 64GB Ventura 13.0.1 Apple Studio Display

- Andrew

Link to comment
Share on other sites

On 7/13/2023 at 1:35 PM, Hangman said:

For me, with the file you uploaded, in the v2.2.0 Beta, I see Red...

On Windows, in either 2.1.0 or 2.2.0.1903 Beta, I see Black.

image.png.56b0bdce975de2db7095a4459ce29363.png

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

1 hour ago, walt.farrell said:

On Windows, in either 2.1.0 or 2.2.0.1903 Beta, I see Black.

When the file is saved with only the Pixel layers visible, how does the thumbnail appear in Windows Explorer, Black or Red? On macOS, the Finder also shows it as Red...

 

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
Affinity Designer Beta 2.6.0.2861 | Affinity Photo Beta 2.6.0.2861 | Affinity Publisher Beta 2.6.0.2861

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

3 hours ago, Hangman said:

When the file is saved with only the Pixel layers visible, how does the thumbnail appear in Windows Explorer, Black or Red? On macOS, the Finder also shows it as Red...

 

Black in File Explorer.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

19 hours ago, walt.farrell said:

Black in File Explorer.

Curiouser and curiouser...

What do you see in these two instances...

 

Colour Dodge and Burn.afphoto

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
Affinity Designer Beta 2.6.0.2861 | Affinity Photo Beta 2.6.0.2861 | Affinity Publisher Beta 2.6.0.2861

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 minutes ago, Hangman said:

What do you see in these two instances...

Screenshot from 2.2 Beta:

Raster:

image.png.857f189588fa776f0192ab22b77b0413.png

Vector is the same.

 

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

In which case, I'm at a loss then as to why when using solid colours you see black on Windows instead of red although looking at your screengrab, is it fair to say there is a black vertical line to the very left and a red vertical line to the right in both instances or is this just down to anti-aliasing?

Affinity Designer 2.5.5 | Affinity Photo 2.5.5 | Affinity Publisher 2.5.5
Affinity Designer Beta 2.6.0.2861 | Affinity Photo Beta 2.6.0.2861 | Affinity Publisher Beta 2.6.0.2861

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

4 minutes ago, Hangman said:

is it fair to say there is a black vertical line to the very left and a red vertical line to the right in both instances or is this just down to anti-aliasing?

Here's a better screenshot; I didn't have snapping enabled last time.

Screenshot 2023-07-19 112030.png

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
    Laptop 2: Windows 11 Pro 24H2,  16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU
iPad:  iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Link to comment
Share on other sites

I wonder if Affinity built its own blend methods or if it uses native ones on Mac vs Windows. Apple's Core Image does all the blends that Affinity needs (plus a ton of other image processing features). Photoshop seems to do its own cross-platform thing, as far as I can tell. Using platform libraries could explain slight differences, while writing your own instead could have unique bugs as well.

Device: Apple M1 Ultra 64GB Ventura 13.0.1 Apple Studio Display

- Andrew

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.