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?".
Hi,
I think I do this wrong way, but I wanna split image with 2000px width 1000px height to 2 files, where first have 900px width and second 1200px width. I find this
The problem is your code gets as many images as it can out of the available width with your width setting; hence the 200 wide piece. I am not sure of a way around it other than doing two crops. There may be something here but I could not see anything: https://www.imagemagick.org/Usage/crop/
With V7 you should only need magick and not magick convert.
Gurthfin wrote: ↑2018-03-04T08:00:51-07:00I think I do this wrong way, but I wanna split image with 2000px width 1000px height to 2 files, where first have 900px width and second 1200px width. I find this
but this produce 3 files 900x1000, 900x1000 and 200x1000. I looking at crop example and trying everything, but nothing works.
If you want the first piece to be 900 pixels wide (or any particular width) and the second piece to contain the remainder of the image, there are several ways to accomplish this sort of thing. One simple method that comes to mind is something like this...
That crops the image into as many 900 pixel wide pieces as it can, clones everything from the second piece onward and reassembles them, then deletes the unneeded parts before writing the two output images.