Totally Clueless on How to Start

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
hamvvar
Posts: 5
Joined: 2015-07-23T17:05:36-07:00
Authentication code: 1151

Totally Clueless on How to Start

Post by hamvvar »

Hello Imagemagick community

Ok, here's the issue: I want to divide a large image (2250 x 28350 px) into 9 smaller images (2250 x 3150)

After browsing around stackexchange and other forums, Imagemagick is the most recommended piece of software, and they claim it's super simple to use.

I understand that Imagemagick is a command line tool, and I've taken a look at the readme file and the online documentation but it is all very opaque to me. I just have no idea how to even start the program. I'm primarily a visual designer and although I've been making strides in teaching myself to code this is as good as greek to me (I don't speak greek).

Any help or direction toward a concise walkthrough of how to get started would be super appreciated.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Totally Clueless on How to Start

Post by fmw42 »

You can use -crop. See http://www.imagemagick.org/Usage/crop/#crop_equal

Code: Select all

convert inputimage.suffix -crop 1x3% +repage +adjoin resultimage.suffix
you will get 3 images: resultimage-0.suffix, resultimage-1.suffix, resultimage-2.suffix

For new users, see
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/
http://www.imagemagick.org/Usage/reference.html
hamvvar
Posts: 5
Joined: 2015-07-23T17:05:36-07:00
Authentication code: 1151

Re: Totally Clueless on How to Start

Post by hamvvar »

Thank you. That looks relatively simple, but how do I start imagemagick and get my image into imagemagick to begin with?

EDIT: I really apologize, I just don't know what I'm missing.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Totally Clueless on How to Start

Post by fmw42 »

You must install it either from Binary or from source. Binary is simpler, depending upon your platform. What platform are you using? Is there a binary in the link below for your OS?

http://www.imagemagick.org/script/binary-releases.php

Follow the instructions for installation.

The if installed correctly and you have done the tests listed, such as

Code: Select all

convert -version

Code: Select all

convert logo: logo.gif
(and then open the image in some viewer)

then just open a terminal window (Command window in Windows) and cut and paste or type my command above. You need to be in the directory that contains your image when running in the terminal, so cd to that directory first or put the full path to the input and output images with the filenames and you can run from anywhere.
hamvvar
Posts: 5
Joined: 2015-07-23T17:05:36-07:00
Authentication code: 1151

Re: Totally Clueless on How to Start

Post by hamvvar »

I'm in windows 8, i have already installed the program.

Just to be clear, are you saying that if I go into my command prompt it will just 'automagically' recognise the Imagemagick commands? If so that's pretty sweet.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Totally Clueless on How to Start

Post by fmw42 »

I believe that is the case if you have installed Imagemagick properly. Let us know. There are Windows experts here that can help. I am not a Windows user. So they can pick up if IM is not properly installed.

Try the install tests that I list above, which should be mentioned on the binary download page as well.
hamvvar
Posts: 5
Joined: 2015-07-23T17:05:36-07:00
Authentication code: 1151

Re: Totally Clueless on How to Start

Post by hamvvar »

Ok, I'll give that all a shot and report back
hamvvar
Posts: 5
Joined: 2015-07-23T17:05:36-07:00
Authentication code: 1151

Re: Totally Clueless on How to Start

Post by hamvvar »

Hahaha yes, i did it. thank you so much!
Post Reply