winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

Relative and absolute paths in svg format are rendered as different images

Open Hxppdv opened this issue 2 years ago • 1 comments

The same image drawn using relative and absolute paths is considered to be a different image. image test files: test1 test2

Convert SVG path to all-relative or all-absolute

Hxppdv avatar Apr 06 '22 10:04 Hxppdv

WinMerge(WinIMergeLib.dll) uses Direct2D to rasterize SVG images. Direct2D's SVG rasterizing feature is limited as described below, so it may be rendered that way. It seems that the rendering engine itself needs to be changed to change this behavior.

https://github.com/MicrosoftDocs/win32/blob/docs/desktop-src/Direct2D/what-s-new-in-direct2d-for-windows-8-consumer-preview.md

It seems that the difference in alpha value is only 1 as shown below.

image

If you want to ignore this differences, you can increase the value of "CD Threshold" on the left side to ignore the differences.

sdottaka avatar Apr 06 '22 12:04 sdottaka