Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagick: Is it possible to remove "Crop marks"?

I'm using ImageMagick to create a a thumb of a PDF.

/opt/local/bin/convert \
   "$inputFile[0]"     \
  -geometry 157x200    \
  -colorspace RGB      \
   "$ThumbFile"

But lastly we got PDF with "crop marks" (for bleeding).

Is there an option that I can use to don't take those?

How can I do this?

Example:

enter image description here

I would like to have only the content of the second image.

like image 265
J4N Avatar asked Sep 14 '12 09:09

J4N


People also ask

How do I remove crop marks?

In Microsoft Word, click the File tab, then go into Options. Select Advanced and use the scroll bar at the right side of the window to scroll down to the Show document content section. Uncheck the Show crop marks checkbox. Click OK.

How do I get rid of crop marks in InDesign?

Click on the "Marks and Bleeds" tab in InDesign or the "Pre-Press" tab in Scribus and disable the crop marks and set the bleed to zero.


1 Answers

I ended by indicating to image magick to grab only the trim box:

/opt/local/bin/convert \
  -geometry 157x200    \
  -colorspace RGB      \
  -define pdf:use-trimbox=true \
   "$inputFile[0]"     \   
   "$ThumbFile"
like image 175
J4N Avatar answered Sep 21 '22 12:09

J4N