Script file generated from LiVES |1.7 photomosaic 1 Salsaman| Photomosaic|Applying photomosaic to|1|1| metapixel-prepare metapixel over|_Overlay amount (original)|num0|30|0|100| col|Collage _mode|bool|0| twidth|Tile _width|num0|16|1|10000| theight|Tile _height|num0|16|1|10000| ssel|Source frames only from _selection|bool|0|1| sclip|Source frames from whole _clip|bool|0|1| layout|p2|"pixels"|fill| layout|p3|"pixels"|fill| layout|p1|fill| layout|p0|"%"|fill|fill| layout|hseparator| 0x0000 0xF0
if (-d "./temp") {
	`rm -rf ./temp`;
}

`mkdir ./temp`;
`chmod 777 ./temp`;

if ($p1) {
	$collage="-c";
}
else {
	$collage="";
}

if ($p4) {
 #use selection frames only

`mkdir ./tmplinks`;
`chmod 777 ./tmplinks`;
  for ($i=$start;$i<=$end;$i++) {
	$name=&mkname($i);
	`ln -s $name$img_ext ./tmplinks/$name$img_ext`;
  }
  `metapixel-prepare ./tmplinks ./temp --width=$p2 --height=$p3 >/dev/null 2>&1`;
  `rm -rf ./tmplinks`;
}
else {
   # use all frames in clip
  `metapixel-prepare . ./temp --width=$p2 --height=$p3 >/dev/null 2>&1`;
}
`metapixel --metapixel -a $p0 $collage -w $p2 -h $p3 $in $name.png --library ./temp`; `$convert_command $name.png -resize $width!x$height! $out$img_ext`; rename "$out$img_ext","$out"; unlink "$name.png"; `rm -rf ./temp`; init|$p2_max=$width;$p3_max=$height;