Coder Social home page Coder Social logo

Got error message in console: "<Error>: CGBitmapContextCreate: unsupported parameter combination: set CGBITMAP_CONTEXT_LOG_ERRORS environmental variable to see the details" about nuke HOT 5 CLOSED

vkaramov avatar vkaramov commented on May 17, 2024
Got error message in console: ": CGBitmapContextCreate: unsupported parameter combination: set CGBITMAP_CONTEXT_LOG_ERRORS environmental variable to see the details"

from nuke.

Comments (5)

kean avatar kean commented on May 17, 2024

screen shot 2015-10-30 at 21 43 24

from nuke.

kean avatar kean commented on May 17, 2024

64 bpp, 16 bpc, kCGImageAlphaLast (what image data tells us) is not supported
64 bpp, 16 bpc, kCGImageAlphaPremultipliedFirst (that I mention in a PR) is not supported either

As far as I can tell we should simply draw all images using the same pixel format which is best for rendering (for instance, 32 bbp, 8 bpc, kCGImageAlphaPremultipliedLast). End users should be able to easily alter this behaviour by implementing custom image decompressors.

from nuke.

kean avatar kean commented on May 17, 2024
// See Quartz 2D Programming Guide for more info
guard let contextRef = CGBitmapContextCreate(nil,
    Int(imageSize.width),
    Int(imageSize.height),
    8,
    0,
    CGColorSpaceCreateDeviceRGB(),
    CGImageAlphaInfo.PremultipliedLast.rawValue) else {
        return image
}

screen shot 2015-10-30 at 22 05 44

from nuke.

sadityam avatar sadityam commented on May 17, 2024

Hi,

How did you set the environment variable CGBITMAP_CONTEXT_LOG_ERRORS and what did you set it to ?

-Thanks

from nuke.

vkaramov avatar vkaramov commented on May 17, 2024

Product/Scheme/Edit Scheme/Environment variables.
I had set it to 1.

from nuke.

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.