Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe Photoshop Splitting thousands of images evenly

  • Splitting thousands of images evenly

    Posted by Al Jensen on September 16, 2013 at 2:17 am

    Hey guys,

    I’ve been given around 10,000 images that are all 4 smaller pictures in a 2×2 grid. What I need to do is split all of these out and re-save them as Filename_1.jpg through Filename_4.jpg.

    The actual files themselves range through all sorts of dimensions, like say 100×100 to 400×100. The individual pictures within the file will always be half the resolution in each direction, so essentially I need to crop out each “corner”. So in the 400×100 example the result with be 4 images that are 200×50 (top-left, top-right, bottom-left, bottom-right — in that order).

    I was trying to figure out a way to batch this process using Photoshop (CS6) and haven’t really come up with anything. You can do Canvas Size and push the grid button for the corner you want and then cut the resolution in half, but I’m not sure how to do that in a repeatable way that gets all 4 corners for every image, and then renames them to Filename_1.jpg, before moving on to the next one.

    Any ideas would be appreciated, even if it involves another program. Maybe I can hire a guy to make some sort of PHP script? I dunno. Thanks!

    Al Jensen replied 12 years, 7 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dwayne Smith

    September 16, 2013 at 10:38 am

    G’day Al
    Can’t think of a way you could do that automatically with just photoshop.
    If you’re on a Mac, I’m sure you could do it with Applescript.
    Happy to help you build one if this would suit.
    You can find an example of a good starting point here.
    d.

  • Al Jensen

    September 16, 2013 at 6:32 pm

    Very interesting! That seems like something that might work, but unfortunately I’m on a PC. Is there a PC equivalent?

    Thanks!

  • Dwayne Smith

    September 16, 2013 at 8:45 pm

    Yep — Javascript. Or you might find someone who’s done something in VBscript.
    Your best bet is to head over to the Photoshop Scripting Forum.

    Good luck with it.
    d.

  • Al Jensen

    September 16, 2013 at 9:55 pm

    Thanks so much, appreciate it!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy