User Tools

Site Tools


resources:imagemagick_resources

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
resources:imagemagick_resources [2015/06/26 13:03] – created anthonyresources:imagemagick_resources [2019/05/22 16:08] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +~~TOC:1-3~~
 +
 +====== ImageMagick Resources ======
 +
 +ImageMagick is a set of command line tools that usually comes standard with Linux distributions.  
 +
 +http://www.imagemagick.org/script/index.php
 +
 ====== Make thumbnail images of posters from PDF files ====== ====== Make thumbnail images of posters from PDF files ======
  
Line 6: Line 14:
  
 <code> <code>
-acate@VT000332828 /cygdrive/c/Users/acate/Google Drive/lab/holes_fMRI/summaries/SfN2014_poster +$ convert -thumbnail 300 Cate_Brown_Roldan_SfN_2014_FINAL.pdf outputFileName.png
-$ convert -thumbnail 300 Cate_Brown_Roldan_SfN_2014_FINAL.pdf test.png+
 </code> </code>
 +
 +To create thumbnail image of one page of a multi-page PDF file (like a journal article):
 +
 +<code>
 +$ convert -thumbnail pdfFileName.pdf[0] outputFileName.png
 +</code>
 +
 +[0] is for first page, [1] for second, etc.
 +
 +====== Crop images using command line ======
 +
 +<2016-01-08>
 +
 +Anthony did this to crop an SPM rWLS residual time seriers figure (blank except for the very bottom) using command line tool ImageMagick (“convert”). 
 +
 +<code>
 +convert rwls_residual_time_series.png -gravity South ...
 +   -crop 0x30%+0+0 rwls_residual_time_series_crop.png
 +</code>
 +
 +This means: "Crop from bottom up (''-gravity South'') leaving all width and removing 30% of height (''0x30%+0+0'')"
 +
 +Got advice from this and related pages:
 +
 +http://www.imagemagick.org/Usage/crop/#crop_gravity
 +
 +\\
 +----
 +
 +
 +
resources/imagemagick_resources.1435338228.txt.gz · Last modified: (external edit)