New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

Issues with image displaying

Started by vox, August 13, 2025, 04:23:39 AM

Previous topic - Next topic

vox

Hi,

A few days ago I started seeing some (not all) images on 2 different server running CWP start displaying weird. These images are either blacked out (lost their color) or a image with yellow would display red.

I'm thinking it might be related to Nginx & Varnish & Apache. That's what I have configured. Hopefully I've explained this well enough.

Has anyone else experience this issue? If so, what's the fix?
BTW, the images display fine when I download them to my laptop via FTP.

overseer

Never seen that. Can you give us a link to examine an example of the problem?

Starburst

Or post a screenshot.

What OS are you running?

cyberspace

Has the problem been appearing once the images were uploaded ? Did you upload the images over FTP or some PHP script (CMS) or in some other way ?

vox

I'm running Centos 7 Nginx & Varnish & Apache stack.

These images have been on the server for years and displayed fine until recently. I even checked on my phone other PC, iPad all display the same. I switch back to just Apache thinking it might has something to do with NGIX or Varnish but nothing. The images are still discolored or some of the colors are inverted something. I was not able to attach a couple of examples it seems the forum will not allow it.

One of the images i deleted from the server and reuploaded it but it's still displaying the same. It's displaying fine on my laptop but when I load it on the server it's washed out/color is messed up. I can really explain lol

vox

I'm running Centos 7 Nginx & Varnish & Apache stack.

These images have been on the server for years and displayed fine until recently. I even checked on my phone other PC, iPad all display the same. I switch back to just Apache thinking it might has something to do with NGIX or Varnish but nothing. The images are still discolored or some of the colors are inverted something. I was not able to attach a couple of examples it seems the forum will not allow it.

One of the images i deleted from the server and reuploaded it but it's still displaying the same. It's displaying fine on my laptop but when I load it on the server it's washed out/color is messed up. I can really explain lol

cyberspace

Do the images look bad when they are accessed over the direct links as demonstrated below ?

example:
https://domain.com/images/pic.png
https://domain.com/images/pic2.png

Or does some PHP script handles the images ?

example:
https://domain.com/img.php?pic=image.png
https://domain.com/img.php?pic=image2.png

Is there some nginx/apache module like mod_pagespeed ?

vox

Quote from: cyberspace on August 15, 2025, 09:31:07 AM
Do the images look bad when they are accessed over the direct links as demonstrated below ?

example:
https://domain.com/images/pic.png
https://domain.com/images/pic2.png

Or does some PHP script handles the images ?

example:
https://domain.com/img.php?pic=image.png
https://domain.com/img.php?pic=image2.png

Is there some nginx/apache module like mod_pagespeed ?

When I access them directly on the server it still displays weird. And this is happening on 2 different CWP servers. That's what leads me to thing it's CWP related.



vox

No on mod_pagespeed atleast I can't find where it's loaded.

cyberspace

If you access the image over the direct link and it looks bad but if the image is downloaded from your server/vps on your local computer then opened using some image viewer and it looks good then it sounds very very strange.

I think you missed something.

vox



Above is a screenshot of the same logo image, one on the left is the correct color the one on the right which is in the previewer in WP shows the "2" in black. I must be going a little crazy with this issue. Same image on the same server. I even moved this account to a second CWP server and it's the same issue.


Starburst

Looks like an issue with the WP theme.

What theme is it?

Themes are weird, have 1 no matter what you do, it centers the picture.

overseer

You could try to optimize the image with Smush or Imagify; serve it off a CDN so it isn't processed or hosted locally if that is indeed a problem.

cyberspace

Quote from: vox on August 17, 2025, 08:31:36 PM


Above is a screenshot of the same logo image, one on the left is the correct color the one on the right which is in the previewer in WP shows the "2" in black.

Do you have some optimization plugins installed for your WP website ? Such plugins could create lightweight samples of the original images by reducing the size (height/weight), color palette, etc of the original images and then display the created sample images on the website to make it loading faster.

So I think there is such problem.

vox

That could be a possibility on this one site that uses WP, but I have sites that have the same issue but are not using WP. One is a WoltLab Forum and the other is a custom site using nothing but basic PHP scripting.

So this issue is happening on several different servers (using CWP Pro, Centos 7, same stack) & different environments, WP, woltlab forum and custom site running php scripts.