Only PNG supports transparency, is that true?

png-32 supports different levels of transparency. Each pixel can have an opacity between 0 and 255, with 0 as completely transparent. png-24 supports setting one color as fully transparent. Everything else will be opaque. gif uses a color palette. You can specify that one color in the palette is fully transparent. png-8 also uses a … Read more

ImageMagick extend canvas with transparent background

Use this instead: convert \ input.png \ -background none \ -gravity center \ -extent 100×100 \ output.png Note well: The order of the parameters is significant! (To convince yourself, just put -background none at the end of the parameters instead of the start…) Updated: Thanks to @jesmith who noticed that the commandline I originally provided … Read more

smallest filesize for transparent single pixel image

First of all, there is honestly no valid reason to use spacer GIFs in 2020 and beyond (unless you’re working with retro style websites), so this post is mostly just for the curious. Anyway let’s begin: The smallest valid transparent GIF is 35 bytes. data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEAAAAALAAAAAABAAEAAAIBAAA= 47 49 46 38 39 61 01 00 01 00 … Read more

WPF Window with transparent background containing opaque controls [duplicate]

Instead of setting the opacity of the window, set its background’s opacity: <Window x:Class=”WpfApplication3.MainWindow” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” Title=”MainWindow” Height=”350″ Width=”525″ AllowsTransparency=”True” WindowStyle=”None”> <Window.Background> <SolidColorBrush Opacity=”0.5″ Color=”White”/> </Window.Background> <Grid> <Button Width=”200″ Height=”50″>button</Button> </Grid> </Window>