Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got a palette undefined but needed in log record #60

Closed
jean-pierreBoth opened this issue Oct 3, 2022 · 1 comment
Closed

got a palette undefined but needed in log record #60

jean-pierreBoth opened this issue Oct 3, 2022 · 1 comment

Comments

@jean-pierreBoth
Copy link

Error: Exception while generating log record in module PNGFiles at /home/jpboth/.julia/packages/PNGFiles/Ee6Hz/src/io.jl:480
│ exception =
│ UndefVarError: palette not defined

Pb seems read_as_paletted is false, see below and so palette got undefined

Debug: Read PNG info:
│ PNG_HEADER_VERSION_STRING = " libpng version 1.6.37 - April 14, 2019\n"
│ png_ptr = Ptr{Nothing} @0x00000000135a6280
│ height = 0x00000040
│ width = 0x00000040
│ color_type_orig = 0x06
│ color_type = 0x06
│ bit_depth_orig = 0x10
│ bit_depth = 0x10
│ num_channels = 0x04
│ interlace_type = 0x00
│ gamma = nothing
│ image_gamma[] = 0.45455
│ screen_gamma = -1
│ background = false
│ intent[] = -1
│ read_as_paletted = false
│ n_passes = 1
│ buffer_eltype = ColorTypes.RGBA{FixedPointNumbers.N0f16}
│ valid_sRGB = false
│ valid_gAMA = true
│ valid_tRNS = false
│ valid_cHRM = true
│ valid_bKGD = true
│ valid_PLTE = false

@Drvi
Copy link
Collaborator

Drvi commented Oct 7, 2022

Thanks for reporting! Should be fixed now.

@Drvi Drvi closed this as completed Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants