New answers tagged

0

Simple script with good quality Script: inputFile=$1 FPS=15 WIDTH=320 #Generate palette for better quality ffmpeg -i $inputFile -vf fps=$FPS,scale=$WIDTH:-1:flags=lanczos,palettegen tmp_palette.png #Generate gif using palette ffmpeg -i $inputFile -i tmp_palette.png -loop 0 -filter_complex "fps=$FPS,scale=$WIDTH:-1:flags=lanczos[x];[x][1:v]paletteuse" ...


1

glabels has both a GUI editor (glabels-3) for creating .glabels files, and a glabels-3-batch program for printing previously created .glabels from the command line or script. It supports "mail-merge" functionality from various file formats, including CSV. The .glabels file is just gzip-compressed XML. I created a simple file with glabels-3 (one big text ...


3

ImageMagick can do it. See the examples under “Text Handling — Best Fit to Image”. convert -background white -fill black -density 600x600 -size 1346x756 -gravity center label:'Audio' audio.pdf It also supports multiline: convert -background white -fill black -density 600x600 -size 1346x756 -gravity center label:'Audio\nCables' audio_cables.pdf Output ...


2

You can try enscript. It has many features, many of which do not interest you, but you can set a font-size and media size. It does not centre nor justify, but you can visualise the result with ghostview and amend your data. Try this: cat <<\! >>~/.enscriptrc # Media: name width height llx lly urx ury bounding box lowleft upright # 57mm x 32 mm ...


3

A traditional tool for printing simple text files is enscript. This produces PostScript output. You can convert this to an image in many ways. One that gives good results is pdftopng which needs the PostScript packaged into a pdf as input (eg with ps2pdf) and produces png image files. So, using convert from ImageMagick to convert to jpg you end up with: ...


1

Here's what worked for me: ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4 movflags – This option optimizes the structure of the MP4 file so the browser can load it as quickly as possible. pix_fmt – MP4 videos store pixels in different formats. We include this option to specify a specific ...



Top 50 recent answers are included