[Athen] Fixing a Tiff

Mark C. Mintz mmintz at pasadena.edu
Wed Jun 30 15:23:16 PDT 2021

I’d love to test this out since I just spent an hour trying to figure out how I would do it, but what I would be inclined to do is convert it to a PDF, just so I can use my normal tools, then:

* Split odd.pdf 1 page per file into a temporary folder with filename like: A #.pdf
* Split even.pdf 1 page per file with a name like: B #.pdf
* In powershell use the command:

o ls | rename-item -NewName {$_.name -replace '(\w+) (\w+)', '$2 $1'}

* This reorders the naming from “A 1.pdf” to “1 A.pdf” – essentially making default sort order read the pages in the proper order
* Select all files in the folder in windows explorer then context menu -> “combine files in acrobat”. It should add them in the proper order, though, of course, you should verify that.

There’s probably a simpler way, but I was trying to do it without installing software. I know you usually use linux, so I think you can mass rename in a similar manner with sed or some other string manipulator in the command line.

(okay, I looked, you could do the same thing using irfanview command line with the switch -extract, but I don’t feel like installing it right now)


Mark Mintz
Assistive Technology Specialist
Direct phone number: ‪(626) 340-0375
Drop-in help is available for Alternate Media, Assistive Technology and Accessibility through a zoom instance. Scheduled daily, please e-mail me for specific times.

PCC Stands against hate<https://pasadena.edu/about/no-hate.php>

Kurzweil 3000 is now available to all students! Kurzweil is a reading support web app that will read aloud any text provided – and has access to a variety of reading support tools like highlighting and notetaking. Try it today! Log into Kurzweil3000<https://www.kurzweil3000.com/> using the “Sign in with Google” link.

DSP&S is using a new Student Management System, and students need to reach out to their teacher-specialist to ensure their documentation is up to date. If you have any questions about the new system, please ask!

From: athen-list <athen-list-bounces at mailman12.u.washington.edu> On Behalf Of Deborah Armstrong
Sent: Wednesday, June 30, 2021 1:36 PM
To: Access Technology Higher Education Network <athen-list at u.washington.edu>
Subject: [Athen] Fixing a Tiff

I have a tiff of a book that was scanned several years ago by a student worker.

He did a superb job, except he scanned all the odd-numbered pages in a chapter, then flipped the stack over and scanned all the even-numbered pages. He created a multi-page tiff for each chapter.

He then used some software a friend wrote to reorder everything the way he wanted it and created his own PDF. All I got were the original tiff files -- one file per chapter – before he graduated.

Anyway, OmniPage and both Kurzweils have a flip pages feature, but it works when you are actually scanning, not when you have an already-scanned tiff file.

I looked through the documentation for ImageMagick but I couldn’t find anything about automatically reordering pages.

I want to find a batch process for reordering the pages. I was thinking of separating it in to individual pages img001.tif, img002.tif, etc…. I have software to do that … and then renaming the even numbered pages to 2A, 4A etc. but that’s still manual labor.

I don’t care what the resulting format is as long as pages are in order and it will OCR if needed for a future request.

Anyone have any bright ideas? I can write code if I have to but I was hoping someone already had a program that did it.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman12.u.washington.edu/pipermail/athen-list/attachments/20210630/486562d9/attachment.html>

More information about the athen-list mailing list