From db964274029bc9247f06f58270f4c61d308948df Mon Sep 17 00:00:00 2001 From: Drew Short Date: Mon, 27 Apr 2020 10:08:34 -0500 Subject: [PATCH] Adding versions to profiles --- acm-config-default.json | 18 ++++++++++++++++++ acm.py | 3 +++ setup.py | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/acm-config-default.json b/acm-config-default.json index 576f192..e2feb8b 100644 --- a/acm-config-default.json +++ b/acm-config-default.json @@ -3,6 +3,7 @@ "profiles": { "default": { "jpeg": { + "version": "1.2.1", "processors": ["cjpeg"], "extensions": [ "jpg", @@ -12,6 +13,7 @@ "command": "cjpeg -optimize -quality 90 -progressive -outfile {output_file} {input_file}" }, "png": { + "version": "1.2.1", "processors": ["optipng"], "extensions": [ "png" @@ -20,6 +22,7 @@ "command": "optipng -o2 -strip all -out {output_file} {input_file}" }, "video": { + "version": "1.2.1", "processors": ["ffmpeg"], "extensions": [ "mp4", @@ -29,6 +32,7 @@ "command": "ffmpeg -hide_banner -loglevel panic -i {input_file} -c:v libvpx-vp9 -b:v 0 -crf 29 -c:a libopus {output_file}" }, "audio": { + "version": "1.2.1", "processors": ["ffmpeg", "opusenc"], "extensions": [ "wav", @@ -40,6 +44,7 @@ }, "placebo": { "jpeg": { + "version": "1.2.1", "processors": ["cp"], "extensions": [ "jpg", @@ -50,6 +55,7 @@ "command": "cp {input_file} {output_file}" }, "png": { + "version": "1.2.1", "processors": ["cp"], "extensions": [ "png" @@ -59,6 +65,7 @@ "command": "cp {input_file} {output_file}" }, "video": { + "version": "1.2.1", "processors": ["cp"], "extensions": [ "mp4", @@ -69,6 +76,7 @@ "command": "cp {input_file} {output_file}" }, "audio": { + "version": "1.2.1", "processors": ["cp"], "extensions": [ "wav", @@ -81,6 +89,7 @@ }, "webp": { "jpeg": { + "version": "1.2.1", "processors": ["cwebp"], "extensions": [ "jpg", @@ -90,6 +99,7 @@ "command": "cwebp -jpeg_like -q 90 -o {output_file} {input_file}" }, "png": { + "version": "1.2.1", "processors": ["cwebp"], "extensions": [ "png" @@ -100,6 +110,7 @@ }, "aggressive": { "jpeg": { + "version": "1.2.1", "processors": ["ffmpeg", "cjpeg"], "extensions": [ "jpg", @@ -109,6 +120,7 @@ "command": "export FILE={output_file} && export TEMP_FILE=${FILE}_tmp.jpg && ffmpeg -i {input_file} -vf scale=-1:720 ${TEMP_FILE} && cjpeg -optimize -quality 75 -progressive -outfile {output_file} ${TEMP_FILE} && rm ${TEMP_FILE}" }, "png": { + "version": "1.2.1", "processors": ["optipng"], "extensions": [ "png" @@ -117,6 +129,7 @@ "command": "optipng -o2 -strip all -out {output_file} {input_file}" }, "video": { + "version": "1.2.1", "processors": ["ffmpeg"], "extensions": [ "mp4", @@ -126,6 +139,7 @@ "command": "ffmpeg -hide_banner -loglevel panic -i {input_file} -vf scale=-1:720 -c:v libvpx-vp9 -b:v 0 -crf 38 -c:a libopus {output_file}" }, "audio": { + "version": "1.2.1", "processors": ["ffmpeg", "opusenc"], "extensions": [ "wav", @@ -137,6 +151,7 @@ }, "aggressive-webp": { "jpeg": { + "version": "1.2.1", "processors": ["cwebp"], "extensions": [ "jpg", @@ -146,6 +161,7 @@ "command": "export FILE={output_file} && export TEMP_FILE=${FILE}_tmp.jpg && ffmpeg -i {input_file} -vf scale=-1:720 ${TEMP_FILE} && cwebp -jpeg_like -q 75 -o {output_file} ${TEMP_FILE} && rm ${TEMP_FILE}" }, "png": { + "version": "1.2.1", "processors": ["cwebp"], "extensions": [ "png" @@ -154,6 +170,7 @@ "command": "cwebp -o {output_file} ${input_file}" }, "video": { + "version": "1.2.1", "processors": ["ffmpeg"], "extensions": [ "mp4", @@ -163,6 +180,7 @@ "command": "ffmpeg -hide_banner -loglevel panic -i {input_file} -vf scale=-1:720 -c:v libvpx-vp9 -b:v 0 -crf 38 -c:a libopus {output_file}" }, "audio": { + "version": "1.2.1", "processors": ["ffmpeg", "opusenc"], "extensions": [ "wav", diff --git a/acm.py b/acm.py index 7662e36..01b2d52 100755 --- a/acm.py +++ b/acm.py @@ -17,6 +17,9 @@ from minio.error import NoSuchKey # Size of the buffer to read files with BUF_SIZE = 4096 +#Application Version +VERSION = "1.2.1" + ########### # AsyncIO # diff --git a/setup.py b/setup.py index 8132a86..f20c5e0 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ from distutils.core import setup setup( name='Asset-Compression-Manager', - version='0.1.0', + version='1.2.1', description='Helper Utility For Managing Compressed Assets', author='Drew Short', author_email='warrick@sothr.com'