# 5 ImageMagick Command Line Examples–part 1 ★

In the second example, the command only produces one image. In the past, without knowing the use of +[x-pos]+[y-pos], I got more than one image, and needed to delete them except the desired one.1

When I wrote a post about screendump, I took a screenshot of TTY1 so as to prove that the text that followed the screenshot was really contents in TTY1.2 The width and height of the screenshot was 1280 px and 1024 px respectively. I then used my old way to crop it to an image with width 520 px and height 230 px, and got similar error message described in ImageMagick’s examples.3.

1. In “ImageMagick commands learnt” in Basic Use of Aptitude, I got four images because I didn’t append +0+0 after 640x512

2. There’s an image cropped with ImageMagick in “Usage” in Record Linux Terminal.

\$ convert src.png -crop 512x225+0+0 tty1.png


3. In “The Missed Image (from a bad crop)” in Examples of ImageMagick Usage (version 6)
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.827552080154419, "perplexity": 3538.4787176717573}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-26/segments/1560627999948.3/warc/CC-MAIN-20190625213113-20190625235113-00441.warc.gz"}