I currently have a dilemma with using a 20px fallback image for loading images. Transparent images seem to appear blurry once they are loaded due to the background image. The use of dominant color or traced SVG does not solve this issue either. How can I implement a fallback image without encountering these side effects?
One suggestion is to eliminate the background when transparent images are loaded. But would that be an effective solution?
An alternative approach could be to only remove the background for transparent images. Is there a way to identify whether an image is transparent using Node JS? This way, I can apply changes specifically to those images.
While I am utilizing Gatsby JS and gatsby-remark-relative-images plugin for image optimization automation, it is not mandatory to provide solutions solely based on Gatsby APIs.