Commit 0c46370d authored by FRIGN's avatar FRIGN

Add 2ff utility

This is a wrapper for the different conversion utilities with
filetype detection using file(1) and an imagemagick fallback.
parent 634c3ec6
FORMAT=`file -ib "$1" | cut -d ";" -f 1`
if [ "$FORMAT" = "image/png" ]; then
png2ff < "$1"
convert "$1" png:- | png2ff
......@@ -17,7 +17,7 @@ clean:
@echo installing into ${DESTDIR}${PREFIX}/bin
@mkdir -p ${DESTDIR}${PREFIX}/bin
@cp -f png2ff ff2png ${DESTDIR}${PREFIX}/bin
@cp -f png2ff ff2png 2ff ${DESTDIR}${PREFIX}/bin
@echo removing from ${DESTDIR}${PREFIX}/bin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment