Windows user here, How do I crop a photo in Windows to 1140x250

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
purplenate26
Posts: 3
Joined: 2016-10-17T13:37:44-07:00
Authentication code: 1151

Windows user here, How do I crop a photo in Windows to 1140x250

Post by purplenate26 »

I've been pulling my hair out. I used Google's Picasa, Windows builtin tool, Gimp, Gimp I can't use on my 4K screen because everything looks tiny and my poor eyesight can't see and on a 1080p monitor it looks incredibly complicated. None are capable of taking an image of 2988x2988 pixels on each edge and cropping a certain area so that the image is 1140x250.

This is the image that I am trying to crop https://photos.app.goo.gl/07dY7Y91q2GymUwr1

See I want a cropped photo of 1140x250 showing only the brick part and the image flipped right to left so the bricks seem to go from right side outward.

So basically just center in the middle of the brick after flipping left to right. The 1140 part should capture the brick going into the distance and the 250 should be centered between top and bottom of brick. So all brick.

At this point DOS+Imagemagick looks more easier. Is there a real time feedback as I enter dos commands? I've heard people say according to Google that imagemagick is the best photo manipulator there is. Look, all I want is a tool for cropping and resizing with hopefully real time feedback. I'll never do anything like color stuff or put it on a server or be a pro. I just want to learn from imaemagick users how to crop and resize. Mostly cropping because all the Windows GUI programs resize great, so really just cropping is what I want to master.
By the way the photo is public domain.

Thank you.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Windows user here, How do I crop a photo in Windows to 1140x250

Post by snibgo »

Is this what you mean?

Code: Select all

convert IMG_20150719_044822.jpg -gravity West -crop 1140x250+0+0 -flop bricks.png
Image

I don't know what "real time feedback" you want. IM isn't a GUI image editor. GUIs using IM can be built, but IM's tools are command-line.
snibgo's IM pages: im.snibgo.com
purple26
Posts: 3
Joined: 2017-07-14T17:05:45-07:00
Authentication code: 1151

Re: Windows user here, How do I crop a photo in Windows to 1140x250

Post by purple26 »

snibgo wrote: 2017-07-14T18:30:37-07:00 Is this what you mean?

Code: Select all

convert IMG_20150719_044822.jpg -gravity West -crop 1140x250+0+0 -flop bricks.png
Image

I don't know what "real time feedback" you want. IM isn't a GUI image editor. GUIs using IM can be built, but IM's tools are command-line.
That's exactly what I want. Thanks for the command too. Feel free to use the original image as you see fit. It's public domain. I'm the author.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Windows user here, How do I crop a photo in Windows to 1140x250

Post by fmw42 »

Please, always provide your IM version and platform when asking questions, since syntax may differ.

For novices, see

viewtopic.php?f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Windows user here, How do I crop a photo in Windows to 1140x250

Post by fmw42 »

Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Windows user here, How do I crop a photo in Windows to 1140x250

Post by Bonzo »

As fmw42 says the version number is important. I would have thought as you have a new install on Windows you went with the V7 version. If so convert has been replaced with magick; although depending on your installation ( installing legacy files ) convert will still work.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Windows user here, How do I crop a photo in Windows to 1140x250

Post by snibgo »

Yes, for v7 use "magick" instead of "convert".

On the question of "real time feedback", if a command writes to one (or more) images files, I can have those images opened in Microsoft Photo Viewer. When I tweak the command and re-run it, the images are automatically refreshed.
snibgo's IM pages: im.snibgo.com
purple26
Posts: 3
Joined: 2017-07-14T17:05:45-07:00
Authentication code: 1151

Re: Windows user here, How do I crop a photo in Windows to 1140x250

Post by purple26 »

Ah yes. I downloaded and installed the latest version of imagemagick 64 bit dynamic library from the imagemagick website, v7? yesterday or the day before for Windows. I have Windows 10 Pro 64 bit.

Thank for the info. Good to know. I will be teaching myself cropping in imagemagick and it is good to know that convert is legacy and to use the updated tools. Thank you. Where do I upload the photos I took to an online open source public domain repository. I have quite the large collection that I wish to give to the public domain. I used to have an Flickr account where I would upload public domain photos, but I deleted that account.

Everyone's help is much appreciated.
purple26
Posts: 3
Joined: 2017-07-14T17:05:45-07:00
Authentication code: 1151

Re: Windows user here, How do I crop a photo in Windows to 1140x250

Post by purple26 »

[quote="snibgo"]Yes, for v7 use "magick" instead of "convert".

On the question of "real time feedback", if a command writes to one (or more) images files, I can have those images opened in Microsoft Photo Viewer. When I tweak the command and re-run it, the images are automatically refreshed.
[/quote]

Excellent. I'll be doing just that. Thank you.
Post Reply