Jump to content

Recommended Posts

A new feature of WHMCS 7 is this error:

 

libpng warning: iCCP: known incorrect sRGB profile

 

You can use pngcrush or ImageMagik to find the files with the incorrect profiles. Here's some command line fu that does the job for you, and also shows which PNG files are affected:

 

# find /data/whmcs -name '*.png' -type f -print0 | xargs -0 pngcrush -n -q 2>&1 | grep -A1 iCCP      
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/modules/addons/project_management/images/notes.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/modules/security/duosecurity/logo.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/modules/security/yubico/logo.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/modules/servers/vpsnet/img/recovery.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/modules/servers/vpsnet/img/restore.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/modules/servers/vpsnet/img/shutdown.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/modules/servers/vpsnet/img/tick.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/modules/servers/vpsnet/img/backup.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/modules/servers/vpsnet/img/reboot.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/modules/servers/vpsnet/img/restart.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/images/standard-whois.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/images/percentbar_blue.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/images/select.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/images/percentbar_gold.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/images/info.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/images/connect-logo.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/images/menuexpand.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/images/error.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/images/icons/linktracking.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/images/percentbar_red.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/templates/blend/images/close.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/templates/blend/images/next.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/templates/blend/img/ui-icons_cd0a0a_256x240.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/admin/templates/v4/images/prev.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/assets/img/flags/ca.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/assets/img/twitterfollow.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/assets/img/placeholder.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/assets/img/whmcs.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/assets/img/ui-bg_glass_85_dfeffc_1x400.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/assets/img/verify.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/orderforms/cloud_slider/img/shadow-left.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/orderforms/cloud_slider/img/price-bg.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/orderforms/supreme_comparison/img/back-arrow.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/orderforms/pure_comparison/img/shadow-left.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/orderforms/universal_slider/img/slider-btn.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/orderforms/universal_slider/img/tick.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/artfarm/img/globe.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/artfarm/img/worldmap.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/artfarm/img/logo.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/six/img/worldmap.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/six/img/globe.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/templates/six/img/logo.png:
--
pngcrush: iCCP: known incorrect sRGB profile
 /data/whmcs/vendor/stripe/stripe-php/data/test.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