Tooling for managing asset compression, storage, and retrieval
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

  1. {
  2. "s3": {
  3. "secure": false,
  4. "host": "127.0.0.1:9000"
  5. },
  6. "profiles": {
  7. "default": {
  8. "jpeg": {
  9. "processors": ["mozjpeg"],
  10. "extensions": [
  11. "jpg",
  12. "jpeg"
  13. ],
  14. "outputExtension": "jpg",
  15. "command": "cjpeg -optimize -quality 75 -progressive -out {output_file} {input_file}"
  16. },
  17. "png": {
  18. "processors": ["optipng"],
  19. "extensions": [
  20. "png"
  21. ],
  22. "outputExtension": "png",
  23. "command": "optipng -o2 -strip all -out {output_file} {input_file}}"
  24. },
  25. "video": {
  26. "processors": ["ffmpeg"],
  27. "extensions": [
  28. "mp4",
  29. "webm"
  30. ],
  31. "outputExtension": "mp4",
  32. "command": "ffmpeg -i {input_file} -vcodec libx264 -crf 24 {output_file}"
  33. },
  34. "audio": {
  35. "processors": ["ffmpeg", "opusenc"],
  36. "extensions": [
  37. "wav",
  38. "mp3"
  39. ],
  40. "outputExtension": "ogg",
  41. "command": "ffmpeg -hide_banner -loglevel panic -i {input_file} -f wav -| opusenc --quiet --bitrate 64 --vbr --downmix-stereo --discard-comments --discard-pictures - {output_file} >/dev/null 2>&1"
  42. }
  43. }
  44. }
  45. }