✔ Python Code ⚡ Find square and cube of 0 to 5 🔥 Tecq Mate Tutorials ✌ Get link Facebook X Pinterest Email Other Apps December 24, 2020 print("number\tsquare\tcube") for n in range(6): print("%6d\t%6d\t%4d" % (n, (n*n), (n*n*n))) Get link Facebook X Pinterest Email Other Apps Comments
Connecting MySQL database with C Program on windows pc March 13, 2023 set path=TDM-GCC-64\bin gcc -I mysql-5.1.30-winx64 -l mysql -L mysql-5.1.30-winx64\lib\opt test-connection.c -o test-connection test-connection Download Code Read more
How to Square Images Without Cropping or Downscaling with FFmpeg June 04, 2024 set -xef input=$1 dirpath=$(dirname "$input") file_name=$(basename "$input") file_ext="${file_name##*.}" file_name="${file_name%.*}" blurred="$dirpath/blurred-$file_name.$file_ext" output="$dirpath/output-$file_name.$file_ext" width=$(ffprobe -v error -select_streams v:0 -show_entries stream=width -of csv=p=0 "$input") height=$(ffprobe -v error -select_streams v:0 -show_entries stream=height -of csv=p=0 "$input") longer_side="$height" diff_side=$(($height - $width)) # Determine longer side if [ "$width" -gt "$height" ]; then longer_side="$width" diff_side=$(($width - $height)) fi # Calculate canvas dimensions with padding padding=$((50+$diff_side/2)) canvas_side=$((longer_side + 2 * padding)) ffmpeg -i "$input" -vf "scale=$(($canvas_side*2)):-1,gblur=sigma=15,crop=$canvas_side:$canvas_side" -y "$blurred" ffmpeg -i "$... Read more
Comments
Post a Comment