Posts

Showing posts with the label Terminal

How to Square Images Without Cropping or Downscaling with FFmpeg

Image
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 "$...

✔ MYSQL in C ⚡ Select rows from mysql using c program 🔥 Tecq Mate Tutori...

Image
Download

✔ C Programming ⚡ How to make threads in C program? 🔥 Tecq Mate Tutorials ✌

Image
Download

⚡C Programming doubts ✔ While loop, do while loop, bit wise operators 🔥 Tecq Mate Tutorials ✌

Image

✔ Learn C in 2 hours ⚡ C Programming for beginners 🔥 Tecq Mate Tutorials ✌

Image

Java Swing JApplet - Loan EMI calculator

Image
Download code here .

Python Tutorial for beginners - Learn how to Fetch data from SQLite 3 with Python 3

Image
Download solution here .

Console Login Application Tutorial | JDBC + SQLite3 Tutorial

Image
Part 1 of 3 Part 2 of 3 Part 3 of 3 Download code and database  here . Download jar file here .

Tecq Mate | Laragon - Another Stack of Php, Nodejs, Redis, MySQL, Apache, PostgreSQL, Memcache

Image
Version   Preferences 

Tecq Mate | BlueJ without Terminal | Bluej hide command window

Image

Tecq Mate | Turbo C/C++ change editor color | Turbo C/C++ disable syntax highlight

Image

Tecq Mate | XML to HTML | Transform XML to HTML with XSLT | MSXSL

Image
Download code here .

Compile CSharp code | No IDE | No Visual Studio

Image

MySQL + Java(JDBC) Connection | MySQL connector jar file

Image
Download solution here