Skip to content

How to export .tiff with multiple Alpha channels. #5840

Answered by snibgo
LuukOV asked this question in Help
Discussion options

You must be logged in to vote

To copy alpha to a new meta channel, this Windows BAT script (named alpha2meta.bat) does the job:

rem %1 input image with an alpha channel
rem %2 output TIFF file, same as %1 but with a meta channel.

rem This would be fast and simple with
rem   -channel-fx alpha=>meta
rem but that doesn't currently (December 2022) work.

set INFILE=%1
set OUTFILE=%2

set TMPTXT1=out1.txt
set TMPTXT2=out2.txt
set TMPTXT3=out1a.txt
set TMPTXT4=out2a.txt
set TMPTXT5=out3.txt


for /F "usebackq" %%L in (`%IMG7%magick ^
  %INFILE%
  -precision 15 ^
  -format "WW=%%w\nHH=%%h\n" ^
  -write info: ^
  -channel RGBA ^
  -write ftxt:%TMPTXT1% ^
  -channel A ^
  -define "ftxt:format=\v\n" ^
  -write ftxt:%TMPTXT2% ^…

Replies: 22 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@LuukOV
Comment options

Comment options

You must be logged in to vote
1 reply
@LuukOV
Comment options

Comment options

You must be logged in to vote
2 replies
@LuukOV
Comment options

@LuukOV
Comment options

Comment options

You must be logged in to vote
1 reply
@LuukOV
Comment options

Comment options

You must be logged in to vote
1 reply
@LuukOV
Comment options

Comment options

You must be logged in to vote
1 reply
@LuukOV
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LuukOV
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fmw42
Comment options

Comment options

You must be logged in to vote
1 reply
@fmw42
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants