You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seemingly, they have the same exact colors, and same content, when I parse them as images. But somehow the base64 encoding is different. Maybe they use different levels of compression..?
Here is the logic for generating the thumbnail (I know it has some external functions, it you need those implementations as well, let me know):
Some additional tests show me that the ctx.getImageData also produces slightly different numbers on mac vs ubuntu.
Maybe the default colorspace is different? How could I make them the same?
Comparing the two images here: https://www.diffchecker.com/image-compare/
When using the slider option, it's quite obvious that the lines are a bit different (in their thickness, maybe):
Hey,
I have a unit-test for thumbnail generation. Roughly, it works like this:
The base64 string above is hardcoded from the first test which was generated on an ubuntu machine. It works on the ubuntu machine fine.
However, when I run the same test on my mac (m1 pro), it fails, because the received base64 string is different:
For easier comparison, here they are again:
Thumbnail base64 generated on ubuntu (2170 characters long):
Thumbnail generated on mac (m1 pro) (2182 characters long):
Seemingly, they have the same exact colors, and same content, when I parse them as images. But somehow the base64 encoding is different. Maybe they use different levels of compression..?
Here is the logic for generating the thumbnail (I know it has some external functions, it you need those implementations as well, let me know):
The text was updated successfully, but these errors were encountered: