Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DaGrandMastah

macrumors 6502a
Original poster
Mar 19, 2011
674
23
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?
 

superscape

macrumors 6502a
Feb 12, 2008
937
223
East Riding of Yorkshire, UK
Hmmm...

Hi,

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

http://www.filesuffix.com/extension/cbr.html

...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 (http://www.rarlab.com), 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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.