BiologicalRecordsCentre / bsbi-atlas-drupal8

0 stars 0 forks source link

PNG download transparency wrong? #18

Closed sacrevert closed 9 months ago

sacrevert commented 9 months ago

PNG colour inverted when enlarging plot PNG on twitter. See https://x.com/sacrevert/status/1709896885312303414?s=20

burkmarr commented 9 months ago

Rather than inverting the colours, I think that the problem is simply that the background to the chart images is transparent. When Twitter shows the enlarged image it shows it over a black background rather than white. All the black elements on the original image are then invisible - in the example you gave, that's all the elements except the actual bars. The solution is to generate the chart images with a solid white background rather than transparent (as we already do with the map images). It should be an easy fix.

burkmarr commented 9 months ago

Fixed on live.