Split an image in half, save as two.
Posted: 2013-09-13T16:00:16-07:00
I have a bunch of manga pages, they're all the same size, I need them split in half vertically down the middle and the result saved as two individual images.
I could do the automation in Bash, just need some help with the ImageMagick part, I would really appreciate it. Here's an example of an image I'm trying to converet: http://s15.postimg.org/ae5srlip5/178.jpg
Nevermind, I got it,
Don't know why I was having so much trouble finding that. Also put it in a bash script and it works perfectly: http://pastebin.com/ETvcEnWH
There is some images that don't need to be split and that kind of sucks, I'm trying to think of a way where it can check the resolution of an image and if resolution of image is < than X horizantal resolution it gets exempted from the command and left alone. That would be very easy itself I just need a way to return the exact resolution of an image, back to google.
Sorry if this just became me ranting to myself. I was going to delete the thread but I figured sometimes ancient threads always show up on google and help people out.
I could do the automation in Bash, just need some help with the ImageMagick part, I would really appreciate it. Here's an example of an image I'm trying to converet: http://s15.postimg.org/ae5srlip5/178.jpg
Nevermind, I got it,
Code: Select all
convert ./image.png -crop 50%x100% out.png
There is some images that don't need to be split and that kind of sucks, I'm trying to think of a way where it can check the resolution of an image and if resolution of image is < than X horizantal resolution it gets exempted from the command and left alone. That would be very easy itself I just need a way to return the exact resolution of an image, back to google.
Sorry if this just became me ranting to myself. I was going to delete the thread but I figured sometimes ancient threads always show up on google and help people out.