Problema com transparência da imagem da categoria

I can’t understand it, I’m creating icon in Gimp. Adds transparency.

Windows and other programs have a good interpretation, but on the forum a white background is added to the image.

6 hours I get tired of it. What am I doing wrong ?..

Do you know if the image is a PNG or a JPG file after it has been uploaded? My guess is that it’s being converted to a JPG which will remove the transparency. If that’s the case, here’s what you can try:

You can also read more about the conversion behavior here: Very small PNGs are inappropriately converted to JPGs - #23 by sam

Okay, I’ll check it out, but tell me why it’s happening. What is the intention of such conversion?

btw
I tried with many pictures, even loaded very large ones on the whole screen and the problem still existed.

The idea is to cut down the file size whenever possible to reduce the impact on any storage limits.

Have you tried uploading an image with transparency after changing the setting I mentioned? If you are using the same image, it’s possible you may need to alter a pixel so the system does not see it as a duplicate and keep the converted version in favor of the PNG version (this was mentioned in the link I shared)

Oi, configurei a opção de conversão de PNG para JPG para 100 e editei a nova versão, mas ainda estou recebendo a conversão para JPG. Alguma sugestão?

Não tenho certeza, acho que @jamie.wilson trabalhou nisso recentemente? As configurações devem permitir controlar a conversão.

Na minha experiência com o GIMP, você precisa configurar as opções de exportação da seguinte forma:

  • Desative “Salvar cor de fundo”
  • Ative “Salvar gama”

Sim, a transparência permanece intacta ao fazer o upload do PNG. O problema é que o arquivo ainda está sendo convertido para JPG, que não suporta transparência.

Sim, em outros programas. Mas se o arquivo tiver uma propriedade de fundo, ele será convertido para JPG. Se você desativar o fundo, então não. Isso é apenas minha experiência.

Edição: na verdade, não. Tive esse problema com transparências, mas não consigo reproduzi-lo agora. Sempre funciona :man_shrugging:

Identifiquei uma situação em que PNGs seriam convertidos para JPEGs mesmo com png_to_jpg_quality definido como 100, e acabei de mesclar uma correção. Espero que isso resolva o problema que você encontrou.

Você pode atualizar sua instância do Discourse e nos informar se o problema foi resolvido?

Sim, está funcionando muito bem agora! Desculpe pela resposta tardia.

Obrigado :laughing: