Page 1 of 1

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

Posted: 2017-07-14T17:41:09-07:00
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.

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

Posted: 2017-07-14T18:30:37-07:00
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.

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

Posted: 2017-07-14T18:42:02-07:00
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.

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

Posted: 2017-07-14T18:42:16-07:00
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/

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

Posted: 2017-07-14T18:46:08-07:00
by fmw42

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

Posted: 2017-07-15T02:09:54-07:00
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.

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

Posted: 2017-07-15T04:40:26-07:00
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.

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

Posted: 2017-07-15T07:47:35-07:00
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.

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

Posted: 2017-07-15T07:48:41-07:00
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.