#1
|
|||
|
|||
Replacing embedded JPGs with TIFFs
Ok, interesting problem I'm hoping someone can help me out with here.
Word Doc - 186 pages, 35,000 words. It's a big one. I have several images that need to be replaced with ones of a higher DPI and in TIFF format. The existing images in the document consist of PNG and JPG files. Instead of doing this manually, I thought I'd get technical but it's not working out for me. Here's what I've done so far: *Renamed the document.docx to document.zip and extracted to a folder *Located the media directory and using Photoshop automated the file type and DPI change *Located the document.xml file and using Notepad++ did a find/replace for all files ending in JPG and PNG and changed to TIFF *Saved the document.xml file, re-zipped the folder and renamed from zip to docx Unfortunately now all I get is an error when I try to open the document. I've searched a fair bit and the results were mainly around exporting the Word file as a TIFF or something not at all what I'm looking to do. If anyone can give me some pointers, that'd be great. Thanks! |
#2
|
||||
|
||||
Time to restore your file from a known good backup, then replace the images through the GUI.
Do note that replacing PNG and JPG files with TIFF files is liable to greatly increase the file size and, even so, may not result in a noticeably better printout. For starters, few people could pick the difference between an image printed @ 300dpi vs 600dpi or even 1200dpi in an ordinary document and, if you allow Word to apply its image compression (which you might need to do to keep the file size below 512Mb - Word's upper file size limit), the most resolution the images will have is 220dpi anyway.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Oh I made a copy of the file before mucking with it
There's 80+ images that need to be replaced. Surely there must be an automated method for doing this. As far as the file size and quality issues, yep, I agree. But it's what the publisher wants... |
#4
|
||||
|
||||
Quote:
(a) make sure all the inline ones were numbered a separate numbering sequence from the wrapped ones. Inline image replacement would have to be numbered in the order in which they're located in the document. Wrapped images, would have to be numbered in the order in which they're anchored in the document (which may not be the same as their page placement); and b) write a macro that could go through all the inline images, in the order in which they're located in the document and replace (and presumably, resize) them, as well as going through all the wrapped images, in the order in which they're anchored in the document and replace (and presumably, resize) them as well. By the time the automation has been set up, coded & debugged for 80 images, you'd probably have already completed the job manually.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
||||
|
||||
Cross-posted at: https://answers.microsoft.com/en-us/...8-0fbe8de868f7
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why are inserted JPGs underlined? | Pattie O'Dawes | Word | 1 | 09-21-2016 08:39 AM |
Colors of jpgs in Word are not consistent with actual RGB set on Photoshop | trevdugan | Word | 0 | 07-27-2016 02:34 PM |
Worksheet format: two numbered columns of jpgs | ajohn | Word | 12 | 09-05-2014 05:35 PM |
PPT 2010 on a PC: exporting high res jpgs | Drehorst | PowerPoint | 7 | 03-15-2012 07:36 AM |
Outlook 2003 on WinXP SP2 does not show TIFFs | tomtom67 | Outlook | 1 | 03-15-2010 01:40 PM |