Imagemagick: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=== Various commands for ImageMagick === Convert all PNG to JPG <pre> for x in `ls *.png` ; do convert "$x" "${x%.*}.jpg" ; done </pre> Appending an image to another image (pulled from my wallpaper changer code <pre> export BG_COLOR=black export FIN_IMAGE1=random.jpg export SPAN_SIZE_0=1024x768 convert "${FIN_IMAGE1}" -gravity "${GRAVITY_SPAN}" -background ${BG_COLOR} -resize ${SPAN_SIZE_0} -extent ${SPAN_SIZE_0} +append ${PWD}/background.jpg </pre> Category:ImageM...") |
(No difference)
|
Revision as of 14:25, 29 March 2023
Various commands for ImageMagick
Convert all PNG to JPG
for x in `ls *.png` ; do convert "$x" "${x%.*}.jpg" ; done
Appending an image to another image (pulled from my wallpaper changer code
export BG_COLOR=black export FIN_IMAGE1=random.jpg export SPAN_SIZE_0=1024x768 convert "${FIN_IMAGE1}" -gravity "${GRAVITY_SPAN}" -background ${BG_COLOR} -resize ${SPAN_SIZE_0} -extent ${SPAN_SIZE_0} +append ${PWD}/background.jpg