Archived issue #0023434

Generate images in lossless format (PNG) instead of lossy GIF currently used in test log

Open CASCADEOCCT:Testsclosed5 public notes

Search issues

Description

There are several reasons for GIF image format currently used for snapshots in automated tests.

However there are several drawbacks of this choice:
- GIF is lossy format (palette used with restricted number of colors)
- Palette generation is time-consuming operation
- Colors restrictions may cause wrong results of automated image comparison algorithms

Currently OCCT supports dump in several image formats and it is suggested to use PNG for tests logs.

Testgrid blend/simple was used for preliminary testing and 100 tests executed sequentially on Windows platform in:
- 2 minutes 5.4 seconds with GIF format
- 1 minute 39.29 seconds with PNG format

Public activity

5 archived notes

Participants are labeled by their role within this record.

01Commenter 1
CR23438_1 ready for review
02Author
Patch is OK from my point of view.
03Commenter 3
Please re-submit the fix in branch with correct name (CR23434), since Branch [archived branch] has been integrated to master 2 hours ago (without CR23434 correction) and now it should be deleted
04Commenter 4
Done, test it.
05Commenter 5
Dear Commenter 1,
Branch CR23434 (and master from occt-products) was compiled on Linux and Windows platforms and tested.

Regressions:
Not detected

Improvements:
Not detected

Testing cases:
Not needed