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
#!/bin/sh
FORMAT=`file -ib "$1" | cut -d ";" -f 1`
if [ "$FORMAT" = "image/png" ]; then
png2ff < "$1"
else
convert "$1" png:- | png2ff
fi;
......@@ -17,7 +17,7 @@ clean:
install:
@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
uninstall:
@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