Convert creates black instead of transparent GIFs from 3x1 up to 256x1 sizes
Posted: 2018-05-31T02:53:09-07:00
>convert -version
Version: ImageMagick 6.7.7-10 2017-07-31 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
>uname -a
Linux ubuntu 4.4.0-124-generic #148~14.04.1-Ubuntu SMP Thu May 3 07:26:53 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
this command:
>convert -size 100x1 canvas:transparent 100x1.gif
creates odd gif file 521 bytes in size which looks black any way I look at it. it is true for any width from 3 to 256 and for heights 1 and 2 at least
on the other hand, this one works just fine:
>convert -size 257x1 canvas:transparent gif:- | convert - -crop 100x1+0+0 +repage 100x1.gif
it produces perfectly transparent 49 bytes gif of needed size
WBR Eugene
Version: ImageMagick 6.7.7-10 2017-07-31 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
>uname -a
Linux ubuntu 4.4.0-124-generic #148~14.04.1-Ubuntu SMP Thu May 3 07:26:53 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
this command:
>convert -size 100x1 canvas:transparent 100x1.gif
creates odd gif file 521 bytes in size which looks black any way I look at it. it is true for any width from 3 to 256 and for heights 1 and 2 at least
on the other hand, this one works just fine:
>convert -size 257x1 canvas:transparent gif:- | convert - -crop 100x1+0+0 +repage 100x1.gif
it produces perfectly transparent 49 bytes gif of needed size
WBR Eugene