Multimedia is content that uses a combination of different content forms such as text, audio, images, animations, video and interactive content. Multimedia contrasts with media that use only rudimentary computer displays such as text-only or traditional forms of printed or hand-produced material.
- Caire is a content aware image resize library based on Seam Carving for Content-Aware Image Resizing paper.
- libvips A fast image processing library with low memory needs. https://libvips.github.io/libvips/
- Is WebP really better than JPEG?
-
常用 IM 命令
convert image.png image.jpg
convert -resize 2732x2048! image.jpg new_image.jpg
convert image.png -background white -alpha off out.png
关闭 alpha 通道 设置背景色- 批量转换当前目录所有 png 至 jpg:
mogrify -format jpg *.png
- 批量拉伸(强制拉伸)当前目录下所有 jpg 至指定大小:
mogrify -resize 2732x2048! *.jpg
- 批量关闭 alpha 通道,设置背景色
mogrify -background white -alpha off *.png
- 裁剪
convert xxx.png -crop 229X81+0+82 +repage xxx-1.png
- 生成 android icon 集合
#!/bin/sh if [ "$1" == "" ]; then echo "must have name of png" exit 1 fi dir=$1-res pic=$1.png mkdir ./$dir convert -resize 180x180! $pic ./$dir/shareicon.png mkdir -p ./$dir/drawable convert -resize 180x180! $pic ./$dir/drawable/$pic mkdir -p ./$dir/drawable-hdpi convert -resize 72x72! $pic ./$dir/drawable-hdpi/$pic mkdir -p ./$dir/drawable-ldpi convert -resize 36x36! $pic ./$dir/drawable-ldpi/$pic mkdir -p ./$dir/drawable-mdpi convert -resize 48x48! $pic ./$dir/drawable-mdpi/$pic mkdir -p ./$dir/drawable-xhdpi convert -resize 96x96! $pic ./$dir/drawable-xhdpi/$pic mkdir -p ./$dir/drawable-xxhdpi convert -resize 144x144! $pic ./$dir/drawable-xxhdpi/$pic mkdir -p ./$dir/drawable-xxxhdpi convert -resize 192x192! $pic ./$dir/drawable-xxxhdpi/$pic
- Essential Image Optimization - an eBook https://images.guide
- Leanify lightweight lossless file minifier/optimizer
- imagemin Minify images seamlessly
- imgmin Lossy image optimization
- image-optimizer Easily optimize images using PHP https://murze.be/2017/07/easily-optimize-images-using-php-binaries/
- imgo Image optimization tool http://imgo.github.com/imgo
- https://www.jonof.id.au/kenutils.html macOS Homebrew users may install PNGOUT with:
brew install jonof/kenutils/pngout
- 🚫对比 ppduck 速度太慢了,不推荐
- https://www.jonof.id.au/kenutils.html macOS Homebrew users may install PNGOUT with:
- jpeg-archive Utilities for archiving JPEGs for long term storage.
- Crunch Insane(ly slow but wicked good) PNG image optimization
- ⭐pngquant
- GUI https://imageoptim.com/
- recursively-batch-process-files-with-pngquant
find . -name '*.png' -exec pngquant --ext .png --force 256 {} \;
find . -name '*.png' -print0 | xargs -0 -P2 -L1 pngquant --ext .png --force 256
多核处理(-P2)
http://nullice.com/limitPNG , http://nullice.com/gluttonyPNG已无人维护,bug多,不推荐
- tinypng Smart PNG and JPEG compression
- Free: Up to 20 images, max 5 MB each
- ⭐ppduck PP鸭整合了业内最优秀的数种开源的图片压缩算法,会自动根据图片特征自动选择压缩参数。只需要将图片拖入PP鸭,就能自动批量压缩,省时省心。
lame --mp3input --abr 32 ${infile} ${outfile}.mp3
ffmpeg -i "${filename}.wav" -f mp3 "${filename}.mp3"
- 使用 audacity/lame/ffmpeg 进行 mp3 文件瘦身
- libsoundio C library providing cross-platform audio input and output. The API is suitable for real-time software such as digital audio workstations as well as consumer software such as music players.
- aubio a library for audio and music analysis https://aubio.org
- FastNoise is an open source noise generation library with a large collection of different noise algorithms. This library has been designed for realtime usage from the ground up, so has been optimised for speed without sacrificing noise quality.
- RtAudio A set of C++ classes that provide a common API for realtime audio input/output across Linux (native ALSA, JACK, PulseAudio and OSS), Macintosh OS X (CoreAudio and JACK), and Windows (DirectSound, ASIO and WASAPI) operating systems.
- ofxPDSP is an openFrameworks addon for audio synthesis and generative music.
- awesome-audio-visualization: A curated list about Audio Visualization.
- VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVDs, Audio CDs, VCDs, and various streaming protocols.
- mpv is a free (as in freedom) media player for the command line. It supports a wide variety of media file formats, audio and video codecs, and subtitle types.
- ijkplayer Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
- LICEcap simple animated screen capture tool for Windows and OS X
- OBS Studio, Free and open source software for live streaming and screen recording
- shotcut cross-platform (Qt), open-source (GPLv3) video editor https://www.shotcut.org
- HandBrake is an open-source video transcoder available for Linux, Mac, and Windows
- Bento4 Full-featured MP4 format and MPEG DASH library and tools
- NodeTube is an open-source YouTube alt that offers video, audio and image uploads, livestreaming and built-in monetization