Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2016, 09:23 PM
ssbtech ssbtech is offline Replacing embedded JPGs with TIFFs Windows 10 Replacing embedded JPGs with TIFFs Office 2016
Novice
Replacing embedded JPGs with TIFFs
 
Join Date: Dec 2016
Posts: 2
ssbtech is on a distinguished road
Default 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!
Reply With Quote
  #2  
Old 12-21-2016, 10:32 PM
macropod's Avatar
macropod macropod is offline Replacing embedded JPGs with TIFFs Windows 7 64bit Replacing embedded JPGs with TIFFs Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 12-21-2016, 10:37 PM
ssbtech ssbtech is offline Replacing embedded JPGs with TIFFs Windows 10 Replacing embedded JPGs with TIFFs Office 2016
Novice
Replacing embedded JPGs with TIFFs
 
Join Date: Dec 2016
Posts: 2
ssbtech is on a distinguished road
Default

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...
Reply With Quote
  #4  
Old 12-22-2016, 05:03 AM
macropod's Avatar
macropod macropod is offline Replacing embedded JPGs with TIFFs Windows 7 64bit Replacing embedded JPGs with TIFFs Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by ssbtech View Post
There's 80+ images that need to be replaced. Surely there must be an automated method for doing this.
If the images were linked, rather than embedded and the replacements required a change in just the file extensions in the links, for example, sure the process could be automated with a fairly simple macro, but not easily with embedded images. For embedded images, you'd have to:
(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]
Reply With Quote
  #5  
Old 12-22-2016, 08:47 PM
macropod's Avatar
macropod macropod is offline Replacing embedded JPGs with TIFFs Windows 7 64bit Replacing embedded JPGs with TIFFs Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing embedded JPGs with TIFFs 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
Replacing embedded JPGs with TIFFs 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

Other Forums: Access Forums

All times are GMT -7. The time now is 08:26 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft