sfan5 wrote:This warning is caused by Irrlicht and you can safely ignore it.
christoferlevich wrote:Ok - I know everyone says PNG errors can simply be ignored - but I can tell you that there are two that are killing my clients - keeping them from loading the world.
The interlace warning DOES seem to slow things down in loading, but not nearly as bad as iCCP: known incorrect sRGB profile kills it to the point of 5 plus minute loads - if it ever loads. When it finally loads I get nothing but a grey screen.
Anyone know a fix to this one? I have opened every png I created hoping to edit, but haven't found any profile saved with the files. Maybe there SHOULD be one?
At this point I am thinking about closing down use of it at the school and replacing every png with jpg and gif.
Any thoughts??
sfan5 wrote:This warning is caused by Irrlicht and you can safely ignore it.
TumeniNodes wrote:[Have you tried using Krita to set the profiles?
I'm having a difficult time contemplating this error, as I have never encountered it. But I can say that Krita may be helpful.
There other software but I am only familiar with GNU Linux software, and I assume (unless a proressive school admin) if this is through a school, this is all either MS or Apple?
https://docs.krita.org/Profiling_and_Callibration
christoferlevich wrote:TumeniNodes wrote:[Have you tried using Krita to set the profiles?
I'm having a difficult time contemplating this error, as I have never encountered it. But I can say that Krita may be helpful.
There other software but I am only familiar with GNU Linux software, and I assume (unless a proressive school admin) if this is through a school, this is all either MS or Apple?
https://docs.krita.org/Profiling_and_Callibration
I will check Krita out. We are using Windows 10 for everything, though I am thinking of loading Linux to a PC and be done with it. We also happen to have a subscription to Photoshop, so I used that over GIMP. PNG seems to be a pain. lol
christoferlevich wrote:The interlace warning DOES seem to slow things down in loading, but not nearly as bad as iCCP: known incorrect sRGB profile kills it to the point of 5 plus minute loads - if it ever loads. When it finally loads I get nothing but a grey screen.
Anyone know a fix to this one? I have opened every png I created hoping to edit, but haven't found any profile saved with the files. Maybe there SHOULD be one?
#!/usr/bin/env python3
top = "/home/martin/git/stampy_game/mods/"
import os, subprocess
from os.path import join
for root, dirs, files in os.walk(top):
for n in files:
if ".png" in n:
f = join(root, n)
cmd = ['gm', 'identify', '-verbose', f]
r = subprocess.check_output(cmd).decode("utf-8")
for x in r.splitlines():
if 'rofile-' in x:
print(f)
print(x)
$ python pngscan.py
gm identify: iCCP: known incorrect sRGB profile (/home/martin/git/stampy_game/mods/wool/textures/wool_light_blue.png).
/home/martin/git/stampy_game/mods/wool/textures/wool_light_blue.png
Profile-color: 3144 bytes
gm identify: iCCP: known incorrect sRGB profile (/home/martin/git/stampy_game/mods/throwing/textures/arrow_particle.png).
/home/martin/git/stampy_game/mods/throwing/textures/arrow_particle.png
Profile-color: 3144 bytes
gm identify: iCCP: known incorrect sRGB profile (/home/martin/git/stampy_game/mods/hud/textures/poison_swirl.png).
/home/martin/git/stampy_game/mods/hud/textures/poison_swirl.png
Profile-color: 3144 bytes
gm identify: iCCP: known incorrect sRGB profile (/home/martin/git/stampy_game/mods/hud/textures/hunger_swirl.png).
/home/martin/git/stampy_game/mods/hud/textures/hunger_swirl.png
Profile-color: 3144 bytes
#!/usr/bin/env python3
# Strip color profiles of size 3144 from PNGs
# Needs GraphicsMagick
top = "/home/martin/git/stampy_game/"
import os, subprocess
from os.path import join
for root, dirs, files in os.walk(top):
for n in files:
if ".png" in n:
f = join(root, n)
cmd = ['gm', 'identify', '-verbose', f]
r = subprocess.check_output(cmd).decode("utf-8")
for x in r.splitlines():
if 'Profile-color: 3144 bytes' in x:
print(f)
print(x)
os.system("gm mogrify -strip %s" % f)
Morn76 wrote:Update: It works! I'm using "-strip" to get rid of the bad color profiles and ran this over my subgame. Now I'm no longer getting any iCCP warnings on the MT console.
Here is the updated version of my script with color profile stripping:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
#!/usr/bin/env python3
# Strip color profiles of size 3144 from PNGs
# Needs GraphicsMagick
top = "/home/martin/git/stampy_game/"
import os, subprocess
from os.path import join
for root, dirs, files in os.walk(top):
for n in files:
if ".png" in n:
f = join(root, n)
cmd = ['gm', 'identify', '-verbose', f]
r = subprocess.check_output(cmd).decode("utf-8")
for x in r.splitlines():
if 'Profile-color: 3144 bytes' in x:
print(f)
print(x)
os.system("gm mogrify -strip %s" % f)
Edit: I've started a pull request for minetest_game about this: https://github.com/minetest/minetest_game/pull/1515
christoferlevich wrote:I am excited to read about the progress you've made with this error. I just wish I knew how to run a script like this (still lots to learn).
Napiophelios wrote:I put all my texture thru OptiPNG and haven't had any PNG errors since.
The visuals don't seem to have suffered any that I can tell.
Took less than a minute for all default Minetest Game images.
christoferlevich wrote:I am going to try ImageMagick and I'll check out Optipng too, but why don't I just go index colors in the PNG and eliminate all RGB? File size and image quality?
christoferlevich wrote:Well, I don't want to make one bug trying to fix another... lol... thats for sure.
Morn76 wrote:christoferlevich wrote:1. install Python 3, https://www.python.org/downloads/
find . -type f -name '*.png' -print0 | xargs mogrify -strip
christoferlevich wrote:It seems I have everything I need... ImageMagick installed on Win10 - I ran through command line and got this message... 'xargs' is not recognized as an internal or external command,
operable program or batch file.
sofar wrote:christoferlevich wrote:It seems I have everything I need... ImageMagick installed on Win10 - I ran through command line and got this message... 'xargs' is not recognized as an internal or external command,
operable program or batch file.
Try using an actual version of Linux.
Morn76 wrote:Or install the Windows Subsystem for Linux in Windows 10. It's basically Ubuntu running on top of Windows 10.
TumeniNodes wrote:MS's history is wrought with them... "acquiring" pretty much any and all companies they "work with" eventually.
and Ubuntu (to them) has been a broken stitch in their side for a long time, just a nagging little pest which is always present, ever increasingly taking a little bite out of their pockets
christoferlevich wrote:I have a spare PC (Dell 7040, 8gigs ram) I'm turning into Ubuntu as a server. Windows is so very... well... its popular!
Morn76 wrote:christoferlevich wrote:I have a spare PC (Dell 7040, 8gigs ram) I'm turning into Ubuntu as a server. Windows is so very... well... its popular!
Ubuntu is the Windows of Linux distros. Impress us all and install Arch Linux instead. ;-)
One advantage that Arch has over Ubuntu is that you are building up from a minimal Linux install, so only packages you really need will be installed. E.g. a C compiler or X server probably are not required on a MT server (and this kind of software is always a security risk on a server of any kind). Ubuntu is a desktop OS, so it probably installs GBs of stuff by default which you don't even need or want.
Return to Minetest Texture Packs
Users browsing this forum: No registered users and 12 guests