zatt.sh

 avatar
Ciugiu
sh
7 months ago
306 B
6
Indexable
Never
#!/bin/bash

# Check if a filename was provided
if [ $# -ne 1 ]; then
    echo "Usage: $0 <filename.zip>"
    exit 1
fi

# Check if the file exists
if [ ! -f $1 ]; then
    echo "File $1 not found!"
    exit 1
fi

# Convert the ZIP file to a PNG image
base64 $1 | convert label:@- output.png
Leave a Comment