WinMerge / winmerge

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
https://winmerge.org/
GNU General Public License v2.0
6.62k stars 808 forks source link

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

Open Hxppdv opened 2 years ago

Hxppdv commented 2 years ago

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

sdottaka commented 2 years ago

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.