uzatt.sh

 avatar
Ciugiu
sh
a year ago
349 B
6
Indexable
#!/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
Editor is loading...
Leave a Comment