Rendered PNGs have EXIF chunks after IDAT chunks, causing validation failure #123620

Open
opened 2024-06-23 03:18:19 +02:00 by sdmtr · 4 comments

System Information
Operating system: Linux-6.8.0-76060800daily20240311-generic-x86_64-with-glibc2.35 64 Bits, X11 UI
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.67

Blender Version
Broken: version: 4.1.1, branch: blender-v4.1-release, commit date: 2024-04-15 15:11, hash: e1743a0317bc
Broken: 3.6
Worked: 3.5

Short description of error
PNG files rendered in 4.1.1 have EXIF chunks after IDAT chunks, which causes them to fail validation with pngcheck / exiftool et al.

Exact steps for others to reproduce the error

  1. Render out a PNG
  2. Validate it with pngcheck / exiftool, generating the following errors:

pngcheck: /tmp/frame-0001.png multiple eXIf not allowed
exiftool: Warning: [minor] Text/EXIF chunk(s) found after PNG IDAT (may be ignored by some readers)

Additional info
The attached image was generated by running blender --factory-startup and rendering out the first frame of the default startup file as an RGBA PNG with 16 bit colour depth and no compression, with all options in the Output > Metadata sidebar menu turned off.

Thanks for your time and attention, I appreciate the incredible work of the Blender community more than I can possibly express.

**System Information** Operating system: Linux-6.8.0-76060800daily20240311-generic-x86_64-with-glibc2.35 64 Bits, X11 UI Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.67 **Blender Version** Broken: version: 4.1.1, branch: blender-v4.1-release, commit date: 2024-04-15 15:11, hash: `e1743a0317bc` Broken: 3.6 Worked: 3.5 **Short description of error** PNG files rendered in 4.1.1 have EXIF chunks after IDAT chunks, which causes them to fail validation with pngcheck / exiftool et al. **Exact steps for others to reproduce the error** 1. Render out a PNG 2. Validate it with pngcheck / exiftool, generating the following errors: > pngcheck: `/tmp/frame-0001.png multiple eXIf not allowed` > exiftool: `Warning: [minor] Text/EXIF chunk(s) found after PNG IDAT (may be ignored by some readers)` **Additional info** The attached image was generated by running `blender --factory-startup` and rendering out the first frame of the default startup file as an RGBA PNG with 16 bit colour depth and no compression, with all options in the Output > Metadata sidebar menu turned off. Thanks for your time and attention, I appreciate the incredible work of the Blender community more than I can possibly express.
sdmtr added the
Type
Report
Severity
Normal
Status
Needs Triage
labels 2024-06-23 03:18:20 +02:00
Member

Can confirm, will check (broke between 3.5 and 3.6)

Can confirm, will check (broke between 3.5 and 3.6)
Philipp Oeser added
Status
Confirmed
Module
Core
Interest
Images & Movies
and removed
Status
Needs Triage
labels 2024-06-24 13:46:40 +02:00
Member

Probably caused by aa3bdfd76a

CC @deadpin

Probably caused by aa3bdfd76a3dc6536532f3cfd4d6313f09805817 CC @deadpin

This is a bug in our version of libpng and was fixed upstream: https://github.com/pnggroup/libpng/issues/480 (commit e6c5bf46c4)

I'll ask for our version of the library to be updated for 4.3 (it's too late for 4.2 and this really is a "minor" warning as exiftool describes it; at least I'm not aware of any image viewer refusing to open our files).

This is a bug in our version of `libpng` and was fixed upstream: https://github.com/pnggroup/libpng/issues/480 (commit https://sourceforge.net/p/libpng/code/ci/e6c5bf46c4fa3e3738a2ed0896ce33fc270e0cac) I'll ask for our version of the library to be updated for 4.3 (it's too late for 4.2 and this really is a "minor" warning as exiftool describes it; at least I'm not aware of any image viewer refusing to open our files).
Bastien Montagne added this to the Core project 2024-07-02 10:44:21 +02:00

Added entry to request libPNG 1.6.43 to the 4.3 libs task (#125241).

Added entry to request libPNG 1.6.43 to the 4.3 libs task (#125241).
Bart van der Braak added
Type
Bug
and removed
Type
Report
labels 2024-08-14 12:58:38 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#123620
No description provided.