Search found 2 matches

by AkemiHomura
2018-07-26T17:23:40-07:00
Forum: Users
Topic: Changing a single pixel to be slightly transparent
Replies: 4
Views: 3619

Re: Changing a single pixel to be slightly transparent

Sorry, Windows 10, IM7. That command does produce the behavior I'm looking for though, thanks!

Rewritten to Windows format:

Code: Select all

magick in.png ^
( +clone -crop 1x1+0+0 +repage -alpha on -channel a -evaluate set 99% +channel ) ^
-alpha on -channel rgba -geometry +0+0 -compose copy -composite out.png
by AkemiHomura
2018-07-25T20:15:06-07:00
Forum: Users
Topic: Changing a single pixel to be slightly transparent
Replies: 4
Views: 3619

Changing a single pixel to be slightly transparent

Use case: Social networks Twitter and Tumblr convert all PNGs to JPGs, sometimes substantially lowering their quality, unless the PNG has transparency. A single pixel being 'only' 99% opaque counts as transparency. Is there any way to use ImageMagick to make a single pixel (e.g. 0,0) very slightly ...