Forum
black border arpund png images
Hi
Having an issue with some pngs when they are resized. There is a black outline around them. The original file which is uploaded has no black border around it but the smaller versions do. Not quite sure if it has something to do with perch or what the best solution might be.
Peter
Please post your Diagnostics Report, and an example image would be helpful.
Hi Rachel
Here's an example of the image https://petermeenagh.co.uk/snares.png
Here's the Diagnostics Report. I've changed the site url and some of my clients info in this.
Perch information
Hosting settings
How many colours are in the original image?
(I'm presuming you're talking about the colour fringing, because the image itself does not have a black outline.)
The image has only black and white as the colours.
Yes the black fringing around the the image is what I meant and this is being added whenever the image is being resized.
How big is the original image?
1417 x 1417
I'm not sure why that would happen.
I'm not sure either. It's fine whenever not resized and I've tried density="2" on the images but still the same issue.
Have you tried with Imagick instead?
I haven't yet. Might give that a go and see. Could it be the way the png is initially saved before it is uploaded?
It could be, yes. If it only has a two colour palette saved with the image, I'm not sure what would happen when you try to resize.