Method of Ridding Unwanted JPGs in CBRs (comic files)
mods, if this is in the wrong area, please move to appropriate section. ta.
so, are you fed up with those extra jpgs in your cbr/cbz files? those that are usually added to the end of the cbr/cbz by the scanner. sure, you can ignore it. and it doesn't take up much space at all. but if you are annoyed and want to remove them, there is an easy way to do it. i'll warn you now that it is not 100% foolproof. so proceed with caution. in short, you can use rar (command line version of winrar) to scan through each cbr and delete specific files inside the archive - be it jpg or any other file. these are the steps to take: 1) open a command prompt in the directory where your cbrs are. my cbrs are arranged in subfolders, so i start at the root of them. 2) now either copy rar.exe into that root folder or set your path to it. eg type: path=%path%;c:\program files (x86)\winrar (or wherever you have installed winrar.) 3) then type this: FOR /R %v IN ("*.cbr") do rar d "%~fv" "*zGreenGiant.jpg" (or whatever filename other than zGreenGiant.jpg) you need the wildcard "*" in front of the file you want to delete since sometimes the archive is itself inside a folder and then you'll need to give the full directory and path and filename. hence the wildcard is a shortcut. and that's it! that command will walk through all your directories and sub-directories. it will search for any files inside each cbr archive for "zGreenGiant.jpg" and when found, rar will delete that particular file and not touch anything else. so, why is this not foolproof? well, usually the scanners will give the comic pages itself a relevant name, eg superman01.jpg, superman02.jpg etc and then have the extra file like zGreenGiant.jpg. in that scenario, we can be pretty sure zGreenGiant.jpg can be deleted. however, if the scanner is trying to be funny/weird/idiotic then he/she could name all the files as zGreenGiant, eg zGreenGiant01.jpg, zGreenGiant02.jpg etc. and in this instance, there is no way to know which files you can and cannot delete. you'll have to manually inspect them one by one. this is why you'll have to be a bit careful if you use the method above to removed unwanted files inside cbr archives. you have been warned. so use wisely - if indeed you are going to use it at all. perhaps only use it in small batches? say a run of 25 or 50 cbrs. or only from today onwards - as i assume you'll go on to read the comic and hence will spot if the deletion messed up or not. ok, have fun! |
oh, make sure your cbrs are read & writable. ie make sure the "read only" attribute is unchecked. otherwise the above rar command won't work.
|
you can use rar to get a list of the files in each cbr archive.
then output that into a text file. then look through the text file to see which files you can delete. if in doubt, don't delete it! ok, follow these steps: 1) open a command prompt in your cbr folder 2) either copy rar to that folder or type: path=%path%;c:\program files (x86)\winrar (or wherever you have installed winrar.) 3) type: for /f "delims=" %a in ('dir /b/s "*.cbr"') do rar lb "%a" >> output.txt that's it! this command will walk through your cbr folders and sub-folders, pickup each cbr archive and then list each file that is inside the archive. it will also "pipe" the result into a text file (in this instance i've name the file output.txt). one word of caution: this command will list ALL files inside the archive. hence you'll tons of data which a normal text file simply cannot handle. so then only run this command against a small batch of cbrs. something like 50 or a 100 at a time. ok? have fun. |
here is a short list of unwated files that i found inside the archives:
abraxsis.jpg Dedication.txt descript.ion FileInfo.txt inanimate.jpg Inanimate_Carbon_Rod.jpg Layer 1.jpg My Scans.txt Planetary_12.csv Planetary_12.nfo Planetary_19_99-splash.jpg Planetary_n1.md5 Planetary_n1.nfo Planetary_n1.sfv Planetary_n3.md5 Planetary_n3.nfo Planetary_n3.sfv Planetary07.md5 Planetary08.md5 Planetary09.md5 Planetary12.md5 raynor_ni.jpg Thannatos' Scan #0001 washsig.JPG Xpuckinfl tribute tag.jpg xsou5b.jpg xxx3.jpg xxxx-sethfisher_inmemoriam_tag.jpg z.jpg z_shazam!2.jpg zcrack.jpg zDream.jpg zDrink.jpg zebra.jpg ZEYES.jpg zfive.jpg zGGtag0.jpg zGGtag1.jpg zGGtag3.jpg zGGtag5.jpg zGreenGiant.jpg z-Just One Man.jpg zk0.jpg zKizz.jpg zlogo.jpg zlogo2.jpg zPink.jpg zpour.jpg zRZN02.jpg zsabretooth.jpg zShadow.jpg zSnarl.jpg zTeam-DCP.jpg Z-T-Head.jpg z-Trooper.jpg zz.jpg zz_oro_newtag.jpg zz_ORO_newtag.jpg zzcps_legion.jpg zzcps-holiday.jpg zz-dizzy-lb.jpg zzMegan05.jpg zzMegan08.jpg zzMegan09.jpg zzMegan10.jpg zzMegan16.jpg zzMegan19.jpg zzMegan22.jpg zzMinutemen-ZonesDiva08v1.jpg zzoroboros7.jpg zzteamO2.jpg ZZYX1.jpg zzz_BeastCharming.jpg zzz_SuperBeastToo.jpg zzz_whitewolf.jpg zzz11 (Darkness-Empire).jpg zzz-DarthScanner-tag1.jpg zzzgartisticone.jpg zzzgbulbhead.jpg zzzgevilhasaface.jpg zzzgnegative.jpg zzzholiday-final.jpg zzzmetaldavetag.jpg zzz-nahga-empire.jpg zzZone1.jpg zzzProletariat-dcp-ScanDog.jpg zzzProletariat-Novus-ScanDogs-hd.jpg zzzStormtroopers-dcp-wVariant.jpg zzzzArchoboros.jpg zzzzz - Monafekk-Empire.jpg ZZZZZ.jpg zzzzzzzLizzy 03.jpg i'm fairly sure those can be deleted. i'm currently running a huge batch deleted on nearly 2000 cbrs![:u] so far, after a quick scan at a few, it seems things are ok. for once in my life i got something right! [88] |
ok, one last point: if the unwanted file has a non-jpg extension, then you can delete it without worry.
eg if the file is: txt, nfo, md5, sfv etc, then simply use a wildcard like so: FOR /R %v IN ("*.cbr") do rar d "%~fv" "*.txt" FOR /R %v IN ("*.cbr") do rar d "%~fv" "*.nfo" you get the idea, right? |
All times are GMT -6. The time now is 01:05 PM — vBulletin Copyright © Jelsoft Enterprises Ltd
|