Minetest_game: Incorrect sRGB profiles in stairs textures

Created on 8 Nov 2018  路  4Comments  路  Source: minetest/minetest_game

WARNING[Main]: Irrlicht: PNG warning: iCCP: known incorrect sRGB profile

Offending files:

/stairs/textures/stairs_obsidian_glass_stairside.png
/stairs/textures/stairs_obsidian_glass_outer_stairside.png

Fix: https://stackoverflow.com/questions/22745076/libpng-warning-iccp-known-incorrect-srgb-profile/40368994

Bug Textures

All 4 comments

It is possible I did not check this with the obsidian textures during that PR.
I'll check this shortly. Thank you stujones11

2262

@stujones11 can you test whenever you have a chance and let me know if it's all set please?

@TumeniNodes Those were the only two images that were flagged when scanning all textures. Here is the script I use.

#! /bin/sh
find . -name '*.png' -print | while read pngfile; do
  libpngoutput=$(pngtogd $pngfile /tmp/test.gd 2>&1)
  if [ -n "$libpngoutput" ]; then
    echo $pngfile
  fi
done
rm /tmp/test.gd

You will need to have libgd-tools installed otherwise it flags every image as bad. Just run this script inside the top level dir of the textures you wish to scan.

Of course, you can easily see if your changes fix the warning by simply launching the game from a console ;)

Thank you stujones11.
Oooh, I like that script, will come in handy.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Wuzzy2 picture Wuzzy2  路  4Comments

paramat picture paramat  路  3Comments

paramat picture paramat  路  3Comments

cdqwertz picture cdqwertz  路  6Comments

TekhnaeRaav picture TekhnaeRaav  路  5Comments