You are not logged in.
Pages: 1
An image like this, is there a neat command line to turn this into png with transparency?
https://brontosaurusrex.github.io/media … rklift.jpg
Offline
Hey brontosurusrex!
To process gif images there are plenty of options using Imagemagick which AFAIK should also work *.png files but i`ve never tried this befor.
Anyways you could try something like:
convert foo.png -fill transparent -opaque white foo_transparent.png
If this doesn`t work you may have to wait for someone more knowledgeable or use gimp Colors -> Color to transparency dialogue.
naik --greetz
"Kaum macht [Mensch]* es richtig, funktioniert es sofort!"
BL-Kitchen Codeberg
Offline
That would be:
-transparent-color color
so:
-transparent-color white
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
A single color transparency?
I'am thinking more like something that does:
a. copy paste this rgb to alpha channel (maybe invert)
a2. maybe normalize alpha
b. fill rgb with black
convert tmp.jpg \
\( -clone 0 -fill black -colorize 100% \) \
\( -clone 0 -negate \) \
-delete 0 -alpha off -compose copy_opacity -composite PNG32:tmp2.png
# from http://www.imagemagick.org/discourse-server/viewtopic.php?t=21677
^ This seems close, but open to better suggestions (imagemagick is really greek to me for some reason...)
output:
Last edited by brontosaurusrex (2017-05-17 16:55:51)
Offline
(imagemagick is really greek to me for some reason...)
me too, but it has exceptional documentation, plus dedicated tutorial sites, plus a forum.
Offline
I love imagemagik ... but but ...
plus dedicated tutorial sites,
plus a forum.
now this I did not know ... the hunt is on.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Pages: 1