I have a case where a PNG image appears differently in edit and preview mode versus normal mode. The normal mode image has black bars at the top and bottom of the image. The edit / preview image does not.
This issue came about after a server migration. The issue did not occur on the previous server and does not occur on my local. I have done all of the usual checks to ensure this isn't user error.
The difference can be seen by visiting the image URL directly.
Preview Mode URL
Normal Mode URL
The image item is of this template:
I know there's a setting where you can change the default background color of transparent images in the Sitecore config. This makes no difference because it doesn't apply to PNGs.
I also deleted the related items in web and republished from master.
Am I missing something? Do I need to "rehash" somehow or do something with the hash key? The hash key has not changed during the server migration.
Sitecore version is 9.0.2