Tag Info

New answers tagged


extent must be used after background and gravity, e.g.: gm convert -resize '1920x1080>' -background black -gravity SouthEast -extent 1920x1080 infile outfile or gm convert infile -resize '1920x1080>' -background black -gravity SouthEast -extent 1920x1080 outfile


There is an option for exiv2 to delete image metadata. By default, the exiv2 subcommand rm (or delete) removes Exif thumbnails and JPEG comments also, additional to the ones you mention (EXIF, IPTC, XMP): $ exiv2 rm test.jpg Use the option -d to delete only parts of the metadata. From man exiv2: -d tgt Delete target(s) for the 'delete' action. Possible ...


Solved it using convert -crop geometry +repage: convert -crop 100%x20% +repage image.png image.png


Using ImageMagick: $ convert -crop 800x1000 image.png cropped_%d.png Will create a sequence of files named cropped_1.png, cropped_2.png, and so on. References Tile Cropping, sub-dividing one image into multiple images ImageMagick v6 Examples -- Cutting and Bordering

Top 50 recent answers are included