Jump to content

libpng warning: iCCP: known incorrect sRGB profile


Jade D

Recommended Posts

Hi all,

Hoping that you guys can assist. Last night I noticed that the system cron had not run in 3 days and after much fiddling around I managed to locate the error how ever my attempts to locate the cause have been unsuccessful

When running the cron using the command (yes its windows, and its not supported, 🙂 but its worked up until now....)

C:\>c:\apps\php-7.0.14-nts-Win32-VC14-x64\php.exe -a "D:\XXXXXXXXXXXXXX\crons\cron.php" "all" "-F" "-vvv"

The following is being returned

Invoice & Overdue Reminders
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile 

 

My searches lead me to these threads which kind of indicated what the issue is, ie corrupt png profile so I removed the logo from whmc's general settings > logo url and reran the cron and no luck, same issue

http://help.whmcs.com/m/automation/l/683269-advanced-cron-troubleshooting

https://docs.whmcs.com/Cron_Job_Issues#Common_Errors

No matter how many times I run the cron it is not getting passed this step and is spamming those particular clients

Invoice & Overdue Reminders
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile 

@brian! - help! - yelp

Link to comment
Share on other sites

I have managed to resolve the issue by doing the following,

Downloaded ImageMagick portable and copied mogrify.exe to the server based on the recommendations made here 

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

Then used the code below to create a batch file that would run mogrify recursively against all folders on the server after reading the following

https://stackoverflow.com/questions/29587837/imagemagick-batch-convert-all-pngs-in-subdirectories-to-jpegs

The batch script looks like this

d:\
cd D:\Domains\XXXXXXXXX\wwwroot\
for /r /d %%a in (*) do mogrify "%%~a\*.png"

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated