1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Other Scanning Old Magazines - a Worklog

Discussion in 'Photography, Art & Design' started by Gareth Halfacree, 3 Mar 2025.

  1. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    17,994
    Likes Received:
    8,003
    IT'S SO GOOD.

    slicey.jpg

    Lift the squisher, lift the blade, pop it in, lower the squisher, lower the blade, lift the blade, lift the squisher, you're done. Maybe a minute to line everything up?

    It does still cut at an angle, like when I'm doing it by hand:

    spine.jpg

    ...but we're talking a few mill. I can live with that.

    Still have to cut the fold-outs by hand, mind, so that's an annoyance. Definitely going to speed things up, though!
     
    David likes this.
  2. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    17,994
    Likes Received:
    8,003
    Yeah, this was all a very sound investment. It now takes me about 30 minutes to go from a bound mag to:

    scanningagain.jpg

    Look at how straight that is! Hell, the two-page spread is almost perfectly lined up and I've done nothing!

    Yeah, the page isn't white enough and the black isn't black enough and the colours are faded, but... that's all fixable in post. Programmatically, even.

    Sure, the scanner and guillotine weren't cheap, but for the time they'll save me? Bargain.

    EDIT:
    1:1 crop of the unprocessed file straight off the scanner:

    pcprounprocessed.jpg

    Page is dark, bleedthrough text is distracting, colours are muted. Quick ImageMagic one-liner...

    pcproprocessed.jpg
    Bleedthrough is reduced, though still present, colours are brighter, blacks are blacker. Could I do better? Yeah, probably. Would anybody care? Probably not, this is perfectly readable.
     
    Last edited: 26 Mar 2025
    Arboreal, IanW and David like this.
  3. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    17,994
    Likes Received:
    8,003
    Opinions, please. Here's a (scaled) half-page from the latest scan:

    1.jpg

    And here it is with what I've been doing, which is 20% saturation boost and one contrast-enhancement flag1:

    2.jpg

    But here it is with *two* contrast-enhancement flags:

    3.jpg

    One flag or two, what do we think?

    EDIT:
    Or the secret fourth option, two contrast bumps and a 3% brightness increase?

    4.jpg

    1: ImageMagick works with command-line flags/switches/options/whatever, and you can tell it to use its contrast-enhancement filter by specifying "-contrast" where "-" means an option and "contrast" is the option. Makes sense, right? Well, you can also tell it to reduce the contrast... by specifying "+contrast". Yeah, minus means increase and plus means decrease. What a topsy-turvy world!
     
    IanW and David like this.
  4. bawjaws

    bawjaws Multimodder

    Joined:
    5 Dec 2010
    Posts:
    4,469
    Likes Received:
    1,051
    IMHO the two-flag option without brightness increase looks best. The last image (2 x contrast + 3% brightness) looks quite cold, I think. But bearing in mind that I don't have the original doc to compare against, I'm only giving an opinion based on how nice I think it looks rather than how accurate it is.
     
    Gareth Halfacree likes this.
  5. David

    David μoʍ ɼouმ qᴉq λon ƨbԍuq ϝʁλᴉuმ ϝo ʁԍɑq ϝμᴉƨ

    Joined:
    7 Apr 2009
    Posts:
    18,325
    Likes Received:
    6,965
    Door number 4, please, Monty.

    Looks cleaner, more vibrant - given the purpose of this endeavor, it seems appropriate.
     
    Gareth Halfacree likes this.
  6. yuusou

    yuusou Multimodder

    Joined:
    5 Nov 2006
    Posts:
    3,179
    Likes Received:
    1,254
    I'd go with option 3, it somehow feels truer to what I expect the original physical media to look like. Option 4 looks too clean, too digital.

    EDIT: if you can do option 4 but with a bit more warmth, that would be ideal, it'll look clean but still retain some paper feel.
     
    Gareth Halfacree likes this.
  7. IanW

    IanW Grumpy Old Git

    Joined:
    2 Aug 2003
    Posts:
    9,798
    Likes Received:
    3,417
    All are totally readable, but I'd say 3 or 4 depending on whether the background page should be white or beige-ish.
     
    Gareth Halfacree likes this.
  8. noizdaemon666

    noizdaemon666 I'm Od, Therefore I Pwn

    Joined:
    15 Jun 2010
    Posts:
    6,190
    Likes Received:
    891
    I would also say 3 or 4. 3 maybe looks more like I would expect a scan of a magazine to look while 4 looks more like I would expect the magazine to look in person.
     
    Gareth Halfacree likes this.
  9. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    17,994
    Likes Received:
    8,003
    Okay, okay, hear me out... what if... two contrasts, 105% brightness, *and* 140% saturation?

    Yes, you lose most of the page texture - but that'll really help come compression time. The colours are bright, though the blacks are a little crushed for my liking.

    Some (scaled!) full-page shots:

    140-1.jpg

    140-2.jpg

    (Peep Nimoy's Vantablack jumper to see what I mean about the crushed blacks)

    140-3.jpg

    (The "Real World Computing" section has, for some reason, yellow pages, which is retained even after processing - note the actual white background on the screenshot. Also, no, I didn't notice the folded corner on these pages before I dumped them. Whoops!)

    140-4.jpg

    (This one's an interesting test, 'cos it's the back cover - nice thick, shiny card, so there's no bleedthrough (which is caused 'cos it's a simultaneous-duplex scanner, so there are lights shining on both sides of the paper at the same time) and the background was *already* white. I was worried the covers (and card inserts) would need special handling, but it looks to have survived intact!)

    EDIT:

    Two contrasts, 104% brightness, 140% saturation, *and* gamma 1.1?

    gamma.jpg

    Brings out the shadows a bit more, I think?
     
    Last edited: 27 Mar 2025
  10. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    17,994
    Likes Received:
    8,003
    Did a whole-mag process, as a test.

    With "convert -define trim:edges=east,west -fuzz 15% -trim -deskew 40% -contrast -contrast -gamma 1.1 -modulate 104,140,100 +repage" it took 7m6s to process 594 pages. However, it also reminded me why I stopped using deskew: it only took to page 17 to decide a mostly-straight page should in fact be rotated to about 45%.

    *Without* deskew, 3m40s. Now, as much as I would like to use this as an excuse to get a processor with double the cores (16C32T would literally double the performance, as I'm spawning individual workers - and that's before you even get into single-threaded enhancements since they made my trusty old 2700X), even if I halved that I'd only be saving a little over a minute each time...

    And the result? From the scanner:

    fromscanner.jpg

    Processed:

    processed.jpg

    1:1 crop:

    processed-crop.jpg

    That'll do, I reckon!

    EDIT:
    What I'll probably do is use this workflow for making the PDFs, *but* keep the original unprocessed scans to-hand - compressed as 90% "visually lossless" JPEGXL. That way if I change my mind, I can reprocess them whenever I want.

    EDIT EDIT:
    6m19s to compress all Issue 65's pages to JPEGXL, 90% quality effort 7. Original size 9.1GB, compressed size 1.1GB(!).

    And how "visually lossless" is "visually lossless"?

    pcpro065cover.png

    One vertical half of that image (saved as a PNG, obviously) is the original PNG from the scanner; the other half is JPEGXL "visually lossless" 90% quality. Go ahead, pixel-peek, you tell me which is which!
     
    Last edited: 27 Mar 2025
    IanW likes this.
  11. yuusou

    yuusou Multimodder

    Joined:
    5 Nov 2006
    Posts:
    3,179
    Likes Received:
    1,254
    jpegxl - Jay Pexcel. My next D&D character has just been named.
     
    IanW and Gareth Halfacree like this.
  12. IanW

    IanW Grumpy Old Git

    Joined:
    2 Aug 2003
    Posts:
    9,798
    Likes Received:
    3,417
    Bard? Sounds like a bard.
     
    yuusou likes this.
  13. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    17,994
    Likes Received:
    8,003
    Issue 60 scanned. Tried to fan it out a bit to avoid it cutting too much off the back... and ended up cutting too much off the front instead, and then cut even more off the back 'cos it hadn't cut enough and the pages were still stitched and glued.

    sliced.jpg

    PC Pro: OMPUTING IN THE REAL WORLD. Whoops.
     
    IanW and Arboreal like this.
  14. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    17,994
    Likes Received:
    8,003
    I know I should be concentrating on scanning, but I had another fiddle with the post-processing stuff - 'cos this had a particularly challenging page: a Kingpin review, with VERY VERY DARK SCREENSHOTS.

    How dark? They were pretty much impossible see using what I was doing before. So, a new approach:
    convert -define trim:edges=east,west -fuzz 15% -trim -contrast -gamma 1.15 -modulate 106,160,100 -auto-level +repage

    "-auto-level" is doing the hard work there. It's a risk, 'cos I have less control over what it's doing... but so long as I keep an eye out for outliers (and don't delete the scans!) I should be good.

    Quick tests (scaled):

    kingpin.jpg

    time.jpg

    honeyball.jpg

    It's not perfect, but I think I'm letting perfect be the enemy of good again... It's so tempting to start fiddling with the scanner brightness/contrast, but I should just stick with what I'm doing now and crack on with actually scanning paper. Too tempting to sit there bikeshedding for weeks!

    EDIT:
    Actually, I'm a bit aggressive on the saturation there. Poor Jon looks orange.

    convert -define trim:edges=east,west -fuzz 15% -trim -contrast -gamma 1.15 -modulate 108,115,100 -auto-level +repage?

    sorryjon.jpg
     
  15. David

    David μoʍ ɼouმ qᴉq λon ƨbԍuq ϝʁλᴉuმ ϝo ʁԍɑq ϝμᴉƨ

    Joined:
    7 Apr 2009
    Posts:
    18,325
    Likes Received:
    6,965
    I used to play Kingpin - I credit it as the first game in which I learnt to circle-strafe.

    Looks about right to me. :lol:
     
    Gareth Halfacree likes this.
  16. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    17,994
    Likes Received:
    8,003
    Scanned Issue 30. Got complacent: it was all going so well, and I'd trimmed maybe a little more off the spine than I needed to, so I started grabbing stacks of pages between inserts rather than separating them by hand first.

    It was great! I was scanning stuff so quickly!

    Yeah, until I hit a couple of pages that were stuck together and the scanner went YOMF. Nothing destroyed, but there's a few pages in this scan that are a little crumplier than I would have liked...

    Lesson learned. Doesn't matter if it takes ages, separate every page by hand before scanning!

    EDIT:
    Here's one victim:

    crumple.jpg

    Less obvious once it's been tweaked, tho':

    crumpleless.jpg
     
    Last edited: 29 Mar 2025
    wyx087 and IanW like this.
  17. Ice Tea

    Ice Tea Modder

    Joined:
    26 Jul 2009
    Posts:
    1,027
    Likes Received:
    134
    When the blade becomes blunt can you sharpen it or will it need a new blade?

    I've only ever used the slide ones with the hobby style blade.
     
    Last edited: 31 Mar 2025
  18. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    17,994
    Likes Received:
    8,003
    The little manual (double-sided A4 sheet, but at least it's in actual English) says yes: there's a tool for putting under the blade so you don't lose a finger, then you undo a surprisingly high number of screws and it drops out. It suggests finding someone who sharpens knives or lawnmower blades, but if you do screw it up they sell replacements.
     
    Ice Tea likes this.
  19. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    17,994
    Likes Received:
    8,003
    Was reading through the ImageMagick docs (as you do), and discovered that I'm... not really supposed to use -auto-level. "The operator is not typically used for real-life images, image scans, or JPEG format images, as a single 'out-rider' pixel can set a bad min/max values for the -level operation. On the other hand it is the right operator to use for color stretching gradient images being used to generate Color lookup tables, distortion maps, or other 'mathematically' defined images."

    So, fine, let's do it properly. Here's a scan:

    scan.jpg

    Here's the old method:

    scan-old.jpg

    And here's the new one:

    scan-new.jpg

    Looks pretty similar, right? Let's pixel-peek:

    new.jpg

    1:1 scale, old approach on top and new approach underneath. The old method has blacker blacks and higher contrast, but the new method is closer to reality. Maybe.

    The new method? convert -define trim:edges=east,west -fuzz 15% -trim -level 10%,85% +repage. In other words, I'm just blacking out the bottom 10% and whiting out the upper 15% (high, I know, but it's to get the page white) and stretching what remains, no gamma correction. There's no automatic anything in there (other than trimming), so it's less likely to go wrong... and it's faster. 3s to process five pages the old way, 2.3s the new way. So, from ~7 minutes to process a 700-page scan to 5m30s-ish. Nothing to be sniffed at!

    Few other page examples - opinions welcome!

    new2.jpg
    new3.jpg
    new4.jpg
     
  20. Gareth Halfacree

    Gareth Halfacree WIIGII! Lover of bit-tech Administrator Super Moderator Moderator

    Joined:
    4 Dec 2007
    Posts:
    17,994
    Likes Received:
    8,003
    Actually, I'm throwing too much away there. Most I can get away with and still retain detail is convert -define trim:edges=east,west -fuzz 15% -trim -level 8%,88% +repage:

    test.jpg

    The pale stripe on the right is the original scan, and you can see the gridlines in the spreadsheet. At 85% white point they're gone; at 88%, there's just the barest hint.

    I can go higher on the white point, of course, but then I'm getting discoloured page backgrounds...

    darkpage.jpg

    That's 8%,95%. Hmm. So the question is: really nice-looking text pages, but a loss of detail in screenshots with light colours in 'em, or retain the detail but the pages look mucky.

    Or just use 88%, which loses some detail and makes the pages look a bit mucky, as a compromise.
     
    IanW likes this.

Share This Page