Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Crop A 1 Pixel Line Out Of An Image With ImageMagick

This snippet creats a 1 pixel tall image that's taken from 40pixels down from the top on the source image. (It's the full width of the source image)

Code

magick input.jpg -crop 0x1+0+40 output.jpg