Giter Club home page Giter Club logo

Comments (2)

codebude avatar codebude commented on June 2, 2024

Then there's maybe a change in the .NET Framework implementation...

Background:
The idea of the tests was to generate a PNG (because in opposite to JPEG it has lossless compression and the same input Image object should return the same PNG file/bytes every time) and build a hash of the resulting file. Thus it should be ensured, that the QRCode has to look exactly the same to make an positive assumption.

When I wrote the tests the same Image object, saved to PNG file, created byte-wise different files, when running in .NET 3.5/.NET 4.X vs all other framework versions. Back then I checked the files in a hex editor and saw that the PNG headers, written bei .NET differed in dependency to the used framework version.
Different PNG file headers resulted in different checksums. That's why I added the compiler flags/branches in the test case.

If it returns the same checksum now, then there must have been a patch in the framework.

from qrcoder.

MPrtenjak avatar MPrtenjak commented on June 2, 2024

Thanks, that is exactly what I thought.

Well, because I had to download .NET Framework 4.5 additionaly, maybe there is something wrong on my side.

Thanks for the answer and have a great day.

from qrcoder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.