uzatt.sh

 avatar
Ciugiu
sh
7 months ago
349 B
2
Indexable
Never
#!/bin/bash

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

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

# Convert the PNG image back to a ZIP file
convert $1 -format "%c" info: | cut -d' ' -f2- | base64 --decode > output.zip
Leave a Comment