Apple Script or Workflow to resize CBR/CBZ files?

Discussion in 'Mac Programming' started by DaGrandMastah, Jan 12, 2013.

  1. macrumors 6502a

    Mar 19, 2011
    Hi all, I have a bunch of comic book files on my computer that I'd like to resize down to a lower resolution (i do all my reading on a tablet and don't need all that extra resolution).

    I am currently unzipping the files and using preview to resize the files from 1920x to 1280x and then rezipping the file and renaming back to cbr. This is a pretty time consuming process.

    Would anyone be able to help me with a script or workflow to automate this process? Being that the resizing may differ if it's a 2 page spread I would prefer to have a script where it'll shrink the file down to 70% of it's existing size. Could anyone please help or point me in the right direction?
  2. macrumors 6502


    Feb 12, 2008
    East Riding of Yorkshire, UK


    I'm not familiar with CBR files, but according to this page...

    ...they're just renamed .rar files containing an image.

    Off the top of my head, I'd be tempted to look at a command line solution, maybe using something like rarlab to extract (, sips to do the image conversion then rarlab again to make it back into a .rar file then just change file extension back to cbr.

    Like I said, I'm not familiar with that file type so I can check if that'd work - but the above seems like a sensible starting point to me.

Share This Page