Imagemagick chop 30px off each edge (variable width and height)

白昼怎懂夜的黑 提交于 2019-12-12 15:12:54

问题


I need to chop 30px off each side (top bottom left right). I've tried crop and also -chop 30x30 but that only seems to work on one side;

convert -verbose -density 150 -trim pdfs/test/test.pdf -quality 80  -chop 30x30 images/agents/test/temp/test.jpg

回答1:


If it's an even amount on both sides of a dimension, then the command you want is -shave

convert -verbose -density 150 -trim pdfs/test/test.pdf -quality 80 -shave 30x30 images/agents/test/temp/test.jpg


来源:https://stackoverflow.com/questions/12200763/imagemagick-chop-30px-off-each-edge-variable-width-and-height

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!