Skip to content

Incorrect color encoding when saving images on Jetson TX2 #242

Open
@ymtoo

Description

@ymtoo

When saving images with ImageMagick.jl on NVIDIA Jetson TX2 (Ubuntu 18.04), the encoded colors appear incorrect.

MWE:

using TestImages
using ImageMagick
using JpegTurbo

img = testimage("lighthouse.png")

JpegTurbo.save("jpegturbo_lighthouse.jpg", img)
ImageMagick.save("imagemagick_lighthouse.jpg", img)

jpegturbo_lighthouse.jpg
Image
imagemagick_lighthouse.jpg
Image

Julia and package versions:

julia> versioninfo()
Julia Version 1.11.3
Commit d63adeda50d (2025-01-21 19:42 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (aarch64-linux-gnu)
  CPU: 4 × Cortex-A57
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, cortex-a57)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)

(jl_79dThV) pkg> st
Status `/private/var/folders/ss/xkdtgy8n4rs0jtwqygpb2dch0000gn/T/jl_79dThV/Project.toml`
  [6218d12a] ImageMagick v1.4.1
  [b835a17e] JpegTurbo v0.1.6
  [5e47fb64] TestImages v1.9.0

shell> cat /etc/nv_tegra_release
# R32 (release), REVISION: 6.1, GCID: 27863751, BOARD: t186ref, EABI: aarch64, DATE: Mon Jul 26 19:36:31 UTC 2021

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions