Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Manga, ImageMagick, Bash.

Name: Anonymous 2013-09-13 22:12

Just finished this script because I needed to split a bunch of manga images in half vertically. Spent like two hours on it. Works perfectly though, and even only does it for images greater than 1200 pixels wide which are the ones that are joined and leaves the others alone.

Feels good man. I thought it might be useful to anyone else who downloads manga where some dude scanned both pages.

#!/bin/bash
mkdir out

for a in *.jpg; do
  if (( $(identify -format "%w" "$a") > 1200 ))
  then convert "$a" -crop 50%x100% ./out/"${a%.jpg}".jpg;
  else cp "$a" ./out
  fi; done

#ImageMagick renames the left half of the crop to end with 0, need the right half alphabetically first.
cd out
for b in *-0.jpg; do
  mv "$b" "./${b%.jpg}"2.jpg; done

Name: Anonymous 2013-09-13 22:13

is that a code?
what do i do with it?

Name: Anonymous 2013-09-13 22:20

>>2
Save it as nignog.sh (important) and then run it in the folder with the manga.

Name: Anonymous 2013-09-13 22:49

>manga
le pedophile comics

Name: Anonymous 2013-09-13 22:54

>>2
you must install gentoo first

Name: GraphicsMagick 2013-09-14 13:07

>>1
Nice for your first imagemagick script. Be sure to make it robust for failures. Especially if the are not there.

Here are some great repo (I should make one):
http://www.imagemagick.org/discourse-server/viewforum.php?f=22
http://www.imagemagick.org/discourse-server/viewforum.php?f=26
http://www.fmwconcepts.com/imagemagick/
http://www.imagemagick.org/Usage/scripts/

I still laugh that they use phpbb as there web forum)

Don't change these.
Name: Email:
Entire Thread Thread List