plotly / plotly/Plotly.NET

Image comparing tests for ImageExport

Open
#317 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area: ImageExport help wanted
Dominant language
F#
Stars
860
Forks
99
Avg merge
22m
Merged PRs (30d)
1

Description

There's Plotly.NET.Export which exports images, for example, into base64. However testing it on exact matches doesn't work well, after all, there are multiple ways the same image can be encoded with jpg or png.

So the idea here is to convert it to an image and compare pixel by pixel against a model one. If the deviation on average isn't big, then the test is considered to pass.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating Plotly.NET.Export and the existing image export tests. Read how exported base64 images are decoded, then determine how a reference image can be compared pixel by pixel with an average deviation threshold. Done means image export tests accept equivalent encodings while detecting meaningful visual differences.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
data-visualization, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.